File size: 1,181 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
{
  "$comment": "SPDX-License-Identifier: Apache-2.0. Copyright 2026 DriftCall Team. Restaurant v2 after min_order_bump per DESIGN.md §5.3.",
  "$id": "https://driftcall.dev/schemas/restaurant/v2.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"},
          "price": {"minimum": 0, "type": "integer"},
          "qty": {"minimum": 1, "type": "integer"}
        },
        "required": ["dish_id", "qty", "price"],
        "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 (v2)",
  "type": "object"
}