File size: 1,329 Bytes
b43d8da | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | {
"$comment": "SPDX-License-Identifier: Apache-2.0. Copyright 2026 DriftCall Team. Restaurant v3 after items_shape_bump / veg_filter_semantic per DESIGN.md §5.3.",
"$id": "https://driftcall.dev/schemas/restaurant/v3.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"eta_min": {
"minimum": 0,
"type": "integer"
},
"items": {
"items": {
"additionalProperties": false,
"properties": {
"dish_id": {"minLength": 1, "type": "string"},
"modifiers": {
"items": {"type": "string"},
"type": "array"
},
"price": {"minimum": 0, "type": "integer"},
"qty": {"minimum": 1, "type": "integer"}
},
"required": ["dish_id", "qty", "price", "modifiers"],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"min_order_inr": {
"const": 299,
"type": "integer"
},
"restaurant_id": {
"minLength": 1,
"type": "string"
},
"total": {
"minimum": 0,
"type": "integer"
}
},
"required": ["restaurant_id", "items", "total", "eta_min", "min_order_inr"],
"title": "Restaurant order (v3)",
"type": "object"
}
|