phantom-marmiton/src/marmiton/input.json
2022-01-08 00:07:09 +01:00

78 lines
1.7 KiB
JSON

{
"$ref": "#/definitions/MarmitonSearchInput",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"MarmitonSearchInput": {
"additionalProperties": false,
"properties": {
"dt": {
"anyOf": [
{
"enum": [
"entree",
"platprincipal",
"dessert",
"amusegueule",
"accompagnement",
"sauce",
"boisson",
"confiserie",
"conseil"
],
"type": "string"
},
{
"items": {
"enum": [
"entree",
"platprincipal",
"dessert",
"amusegueule",
"accompagnement",
"sauce",
"boisson",
"confiserie",
"conseil"
],
"type": "string"
},
"type": "array"
}
]
},
"page": {
"type": "integer",
"minimum": 0
},
"query": {
"type": "string"
},
"type": {
"anyOf": [
{
"enum": [
"season",
"recipe"
],
"type": "string"
},
{
"items": {
"enum": [
"season",
"recipe"
],
"type": "string"
},
"type": "array"
}
]
}
},
"required": [
"query"
],
"type": "object"
}
}
}