Raw schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Event name, e.g. 'Brunch'."
},
"type": {
"type": "string",
"enum": [
"standard",
"cafe-hot-bar",
"sale",
"forecast"
],
"description": "Event type: standard, cafe-hot-bar, sale or forecast."
},
"date": {
"type": "string",
"pattern": "^(\\d{4})-(\\d{2})-(\\d{2})$",
"description": "The day of the event, yyyy-mm-dd."
},
"start_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Time of day, HH:mm (24 hour)."
},
"end_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
"description": "Time of day, HH:mm (24 hour)."
},
"menu_id": {
"description": "Parsley menu id the event uses (from parsley_list_menus).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"description": {
"type": "string",
"maxLength": 2000
},
"private": {
"description": "Mark the event private.",
"type": "boolean"
},
"line_items": {
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"properties": {
"menu_item": {
"description": "Parsley menu item id (from parsley_list_menu_items). Give this OR item_id.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"item_id": {
"description": "The menu item's own item number (itemNumber). Give this OR menu_item.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"amount": {
"type": "integer",
"minimum": 0,
"maximum": 1000000000,
"description": "Quantity (whole number)."
},
"uom": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"description": "Unit of measure as Parsley expects it: kg, lb, gr, oz, ml, cup, qt, pt, tsp, Tbsp, fl oz, liter, gal, ea, ea2 (Parsley's own examples also use 'portions')."
},
"station": {
"description": "Serving station name.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"section": {
"description": "Menu section name.",
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"amount",
"uom"
]
},
"description": "The menu items and amounts to produce or sell (may be empty)."
}
},
"required": [
"name",
"type",
"date",
"line_items"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}