add new schema folder
This commit is contained in:
42
plugins/schemas/core/v1.1.0/Rating.json
Normal file
42
plugins/schemas/core/v1.1.0/Rating.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/rating",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "./definitions.json#/$defs/Context"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"enum": [
|
||||
"rating"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"action"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ratings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "./definitions.json#/$defs/Rating"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"message",
|
||||
"context"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user