add new schemas
This commit is contained in:
43
plugins/schema/beckn_base/api/io/select.json
Normal file
43
plugins/schema/beckn_base/api/io/select.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/select",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../schema/components.json#/$defs/Context"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"enum": [
|
||||
"select"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"action"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"order": {
|
||||
"$ref": "../schema/components.json#/$defs/Order"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"order"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"message",
|
||||
"context"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user