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