{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/MenuItem/v1/schema.json",
  "title": "MenuItem",
  "description": "Objects Grid MenuItem Object. A dish or drink on a Menu: its diets, nutrition and allergens; its price and availability are its Offers (itemOffered). Modeled in compliance with https://schema.org/MenuItem.",
  "type": "object",
  "properties": {
    "at_context": {
      "description": "Schema context",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "https://schema.org"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_type": {
      "description": "The object type",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "MenuItem"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_id": {
      "description": "This MenuItem's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>: its JSON-LD @id, which References point to. Set by the service.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "readOnly": true
    },
    "id": {
      "description": "The unique identifier for MenuItem. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "identifier": {
      "description": "The unique identifier for MenuItem. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "url": {
      "description": "This MenuItem URL. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "minLength": 1,
      "readOnly": true
    },
    "name": {
      "description": "The MenuItem name",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "description": {
      "description": "The MenuItem description",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "image": {
      "description": "An image URL",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "position": {
      "description": "Its place in its section, 1 first",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "suitableForDiet": {
      "description": "Diets it suits",
      "type": [
        "array",
        "null"
      ],
      "uniqueItems": true,
      "maxItems": 11,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/RestrictedDiet/v1/schema.json"
      }
    },
    "nutrition": {
      "description": "Its nutrition per serving",
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/NutritionInformation/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "allergens": {
      "description": "The allergens it contains, of the EU's 14. ObjectsGrid's, beyond Schema.org: Schema.org has no allergens; left out of JSON-LD documents.",
      "type": [
        "array",
        "null"
      ],
      "uniqueItems": true,
      "maxItems": 14,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/AllergenEnumeration/v1/schema.json"
      },
      "x-objectsgrid-extension": true
    },
    "spiciness": {
      "description": "How spicy, 0 (not) to 5. ObjectsGrid's, beyond Schema.org: Schema.org has no spiciness; left out of JSON-LD documents.",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 5,
      "x-objectsgrid-extension": true
    },
    "menuAddOn": {
      "description": "Extras that can be added: other MenuItems, or a MenuSection of them",
      "x-objectsgrid-rangeIncludes": [
        "MenuItem",
        "MenuSection"
      ],
      "type": [
        "array",
        "null"
      ],
      "maxItems": 50,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
      }
    },
    "partOfMenu": {
      "description": "The Menu it is on, for a dish outside any section. ObjectsGrid's, beyond Schema.org: Schema.org links a menu to its dishes, not back; left out of JSON-LD documents.",
      "x-objectsgrid-rangeIncludes": [
        "Menu"
      ],
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
        },
        {
          "type": "null"
        }
      ],
      "x-objectsgrid-extension": true
    },
    "partOfMenuSection": {
      "description": "The section it is in. ObjectsGrid's, beyond Schema.org: Schema.org links a section to its dishes, not back; left out of JSON-LD documents.",
      "x-objectsgrid-rangeIncludes": [
        "MenuSection"
      ],
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
        },
        {
          "type": "null"
        }
      ],
      "x-objectsgrid-extension": true
    },
    "offers": {
      "description": "Its price and availability. Computed, read-only: the objects whose Offer.itemOffered points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "Offer.itemOffered",
      "readOnly": true
    },
    "tags": {
      "description": "Tags an ABAC policy can decide on. A name may repeat; the same name and value appear once. Every stored object has them: created empty when not sent, kept by a replacement (PUT) that does not mention them, unchanged by a patch that does not mention them, cleared by null or [].",
      "type": "array",
      "default": [],
      "uniqueItems": true,
      "maxItems": 50,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Tag/v1/schema.json"
      }
    },
    "meta": {
      "description": "System-managed metadata for the object (version, audit fields). Assigned by the server.",
      "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ObjectMeta/v1/schema.json",
      "readOnly": true
    }
  },
  "required": [
    "name"
  ]
}
