46 lines
912 B
JSON
46 lines
912 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://ondc.org/trv10/2.0.0/on_update",
|
|
"type": "object",
|
|
"properties": {
|
|
"context": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "../schema/components.json#/$defs/Context"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"action": {
|
|
"enum": [
|
|
"on_update"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"action"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"message": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"order": {
|
|
"$ref": "../schema/components.json#/$defs/Order"
|
|
}
|
|
},
|
|
"required": [
|
|
"order"
|
|
]
|
|
},
|
|
"error": {
|
|
"$ref": "../schema/components.json#/$defs/Error"
|
|
}
|
|
},
|
|
"required": [
|
|
"message",
|
|
"context"
|
|
]
|
|
} |