{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/MenuSection/v1/schema.json",
  "title": "MenuSection",
  "description": "Objects Grid MenuSection Object. A section of a Menu, such as Starters, with its dishes (MenuItems) and subsections. Modeled in compliance with https://schema.org/MenuSection.",
  "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": [
            "MenuSection"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_id": {
      "description": "This MenuSection'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 MenuSection. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "identifier": {
      "description": "The unique identifier for MenuSection. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "url": {
      "description": "This MenuSection URL. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "minLength": 1,
      "readOnly": true
    },
    "name": {
      "description": "The MenuSection name",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "description": {
      "description": "The MenuSection 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 on the menu, 1 first",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "partOfMenu": {
      "description": "The Menu it belongs to. ObjectsGrid's, beyond Schema.org: Schema.org links a menu to its sections, not back; the menu's hasMenuSection is computed from this; 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 a subsection of. ObjectsGrid's, beyond Schema.org: Schema.org links a section to its subsections, 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
    },
    "hasMenuSection": {
      "description": "Its subsections. Computed, read-only: the objects whose MenuSection.partOfMenuSection points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "MenuSection.partOfMenuSection",
      "readOnly": true
    },
    "hasMenuItem": {
      "description": "Its dishes. Computed, read-only: the objects whose MenuItem.partOfMenuSection points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "MenuItem.partOfMenuSection",
      "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"
  ]
}
