{
	"id": "MenuItem.json",
	"title": "Menu Item",
	"description": "A food or drink item listed in a menu or menu section.",
	"media": {"type": "application/json;profile=http://schema.org/MenuItem"},
	"allOf": [{"$ref": "Thing.json"}, {"$ref": "Intangible.json"}],
	"type": "object",
	"properties": {
		"menuAddOn": {
			"oneOf": [
				{"$ref": "#/definitions/menuAddOn"},
				{
					"type": "array",
					"items": {"$ref": "#/definitions/menuAddOn"}
				}
			]
		},
		"nutrition": {"$ref": "NutritionInformation.json#/definitions/possibleRef"},
		"offers": {"$ref": "Offer.json#/definitions/possibleRefArray"},
		"suitableForDiet": {
			"oneOf": [
				{"$ref": "RestrictedDiet.json#/definitions/possibleRef"},
				{
					"type": "array",
					"items": {"$ref": "RestrictedDiet.json#/definitions/possibleRef"}
				}
			]
		}
	},
	"definitions": {
		"array": {
			"type": "array",
			"items": {"$ref": "#"}
		},
		"possibleRef": {
			"oneOf": [
				{"$ref": "#"},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"possibleRefArray": {
			"oneOf": [
				{
					"type": "array",
					"items": {"$ref": "#/definitions/possibleRef"}
				},
				{
					"type": "string",
					"format": "uri",
					"links": [{
						"rel": "full",
						"href": "{+$}"
					}]
				}
			]
		},
		"menuAddOn": {
			"title": "Menu Add On",
			"description": "Additional menu item(s) such as a side dish of salad or side order of fries that can be added to this menu item. Additionally it can be a menu section containing allowed add-on menu items for this menu item.",
			"anyOf": [{"$ref": "MenuItem.json#/definitions/possibleRef"}, {"$ref": "MenuSection.json#/definitions/possibleRef"}]
		}
	}
}