{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/Menu/v1/schema.json",
  "title": "Menu",
  "description": "Objects Grid Menu Object. A restaurant's menu, such as Dinner or Drinks: its sections and dishes (MenuSection, MenuItem). A restaurant (a Place) lists its menus in hasMenu. Modeled in compliance with https://schema.org/Menu.",
  "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": [
            "Menu"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_id": {
      "description": "This Menu'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 Menu. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "identifier": {
      "description": "The unique identifier for Menu. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "url": {
      "description": "This Menu URL. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "minLength": 1,
      "readOnly": true
    },
    "name": {
      "description": "The Menu name",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "description": {
      "description": "The Menu 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"
    },
    "inLanguage": {
      "description": "The language it is written in, BCP 47",
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$",
      "maxLength": 35
    },
    "availabilityStarts": {
      "description": "From when it is served. ObjectsGrid's, beyond Schema.org: Schema.org's Menu has no dates; left out of JSON-LD documents.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "x-objectsgrid-extension": true
    },
    "availabilityEnds": {
      "description": "Until when it is served. ObjectsGrid's, beyond Schema.org: Schema.org's Menu has no dates; left out of JSON-LD documents.",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "x-objectsgrid-extension": true
    },
    "openingHoursSpecification": {
      "description": "When in the week it is served, e.g. evenings only. ObjectsGrid's, beyond Schema.org: Schema.org's Menu has no hours; left out of JSON-LD documents.",
      "type": [
        "array",
        "null"
      ],
      "maxItems": 20,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/OpeningHoursSpecification/v1/schema.json"
      },
      "x-objectsgrid-extension": true
    },
    "hasMenuSection": {
      "description": "Its sections. Computed, read-only: the objects whose MenuSection.partOfMenu points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "MenuSection.partOfMenu",
      "readOnly": true
    },
    "hasMenuItem": {
      "description": "Its dishes outside any section. Computed, read-only: the objects whose MenuItem.partOfMenu points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "MenuItem.partOfMenu",
      "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"
  ]
}
