add error statement for context

This commit is contained in:
AshwiniK-protean
2025-04-23 18:06:19 +05:30
parent d86d23d43d
commit 914d6f47f2
222 changed files with 30003 additions and 1123 deletions

View File

@@ -0,0 +1,40 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "cancel",
"type": "object",
"allOf": [
{
"$ref": "../../core/v1.1.0/cancel.json#"
},
{
"$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"]
}
}
}
]
}