Restaurant
restaurant_order1 · Schema (abridged)
"items": {
"type": "array",
"items": {
"type": "object",
"fields": {
"name": { "type": "string" },
"quantity": {
"type": "integer",
"default": 1 }
}
}
},
"address": { "type": "address" }2 · Someone says
«بدي ٢ شاورما ووجبة زنجر والتوصيل لخلدا»
Two shawarma and a Zinger meal, delivered to Khalda.
3 · Your app receives
{
"items": [
{ "name": "شاورما",
"quantity": 2 },
{ "name": "وجبة زنجر",
"quantity": 1 }
],
"address": "خلدا"
}No number was said for the Zinger meal, so its quantity comes from the schema default (1). A quantity nobody said is never invented.
