add new schema folder
This commit is contained in:
47
plugins/schemas/core/v1.1.0/on_rating.json
Normal file
47
plugins/schemas/core/v1.1.0/on_rating.json
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_rating",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "./definitions.json#/$defs/Context"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"enum": [
|
||||
"on_rating"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"action"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"feedback_form": {
|
||||
"description": "A feedback form to allow the user to provide additional information on the rating provided",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "./definitions.json#/$defs/XInput"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"$ref": "./definitions.json#/$defs/Error"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"context",
|
||||
"message"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user