add new schemas
This commit is contained in:
43
plugins/schema/ondc_trv10/cancel.json
Normal file
43
plugins/schema/ondc_trv10/cancel.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/cancel",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../beckn_base/api/io/cancel.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/cancel#"
|
||||
},
|
||||
{
|
||||
"$ref": "./init.json#/allOf/2"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"order_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"descriptor": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "string",
|
||||
"enum": ["SOFT_CANCEL", "CONFIRM_CANCEL"]
|
||||
}
|
||||
},
|
||||
"required": ["code"]
|
||||
},
|
||||
"cancellation_reason_id": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+$"
|
||||
}
|
||||
},
|
||||
"required": ["order_id", "descriptor", "cancellation_reason_id"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user