update schemas and create a validateHandler function

This commit is contained in:
AshwiniK-protean
2025-03-02 18:44:16 +05:30
parent 4b940d9e51
commit 4559ac3e5f
28 changed files with 3053 additions and 3552 deletions

View File

@@ -22,25 +22,8 @@
]
}
]
},
"message": {
"type": "object",
"additionalProperties": false,
"properties": {
"order_id": {
"$ref": "definitions.json#/$defs/Order"
},
"cancellation_reason_id": {
"$ref": "definitions.json#/$defs/Option"
},
"descriptor": {
"$ref": "definitions.json#/$defs/Descriptor"
}
},
"required": [
"order_id"
]
}
},
"required": [
"message",