{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "recipes.json",
	"version": "1.5.12",
	"type": "object",
	"$defs": {
		"recipeData": {
			"type": "object",
			"properties": {
				"name": {
					"type": "string"
				},
				"alias": {
					"$ref": "util.json#/$defs/alias"
				},
				"source": {
					"$ref": "util.json#/$defs/source"
				},
				"otherSources": {
					"$ref": "util.json#/$defs/otherSources"
				},
				"referenceSources": {
					"$ref": "util.json#/$defs/referenceSources"
				},
				"page": {
					"$ref": "util.json#/$defs/page"
				},
				"time": {
					"type": "object",
					"additionalProperties": false,
					"minProperties": 1,
					"patternProperties": {
						"^[a-zA-Z ]+$": {
							"$ref": "util-time.json#/$defs/timeMinutes"
						}
					}
				},
				"serves": {
					"oneOf": [
						{
							"type": "object",
							"properties": {
								"min": {
									"type": "integer"
								},
								"max": {
									"type": "integer"
								},
								"note": {
									"$ref": "entry.json"
								}
							},
							"required": [
								"min",
								"max"
							],
							"additionalProperties": false
						},
						{
							"type": "object",
							"properties": {
								"exact": {
									"type": "integer"
								},
								"note": {
									"$ref": "entry.json"
								}
							},
							"required": [
								"exact"
							],
							"additionalProperties": false
						}
					]
				},
				"makes": {
					"$ref": "entry.json"
				},
				"ingredients": {
					"type": "array",
					"items": {
						"$ref": "entry.json"
					}
				},
				"equipment": {
					"type": "array",
					"items": {
						"$ref": "entry.json"
					}
				},
				"instructions": {
					"type": "array",
					"items": {
						"$ref": "entry.json"
					}
				},
				"noteCook": {
					"type": "array",
					"items": {
						"$ref": "entry.json"
					}
				},
				"type": {
					"type": "string",
					"examples": [
						"Dwarven",
						"Elixir/Ale",
						"Elven",
						"Halfling",
						"Human",
						"Uncommon Cuisine",
						"Lost in Realmspace",
						"Ravenloft",
						"Sigil",
						"Solamnia",
						"The Feywild",
						"The Rock of Bral",
						"The Yawning Portal",
						"The Hearth",
						"The Gilded Horseshoe",
						"The Pink Flumph Theater",
						"The Low Lantern",
						"The Halfway Inn",
						"The Driftwood Tavern",
						"One-Eyed Jax",
						"The Moonstone Mask",
						"The Hissing Stones",
						"Barbarian",
						"Bard",
						"Cleric",
						"Druid",
						"Fighter",
						"Monk",
						"Paladin",
						"Ranger",
						"Rogue",
						"Sorcerer",
						"Warlock",
						"Wizard"
					]
				},
				"diet": {
					"type": "string",
					"description": "- C: Vegetarian [aka \"cheese\"]\n- V: Vegan\n- X: Omnivorous",
					"enum": [
						"C",
						"V",
						"X"
					],
					"markdownDescription": "- C: Vegetarian [aka &quot;cheese&quot;]\n- V: Vegan\n- X: Omnivorous"
				},
				"miscTags": {
					"type": "array",
					"uniqueItems": true,
					"minItems": 1,
					"items": {
						"type": "string",
						"enum": [
							"alcohol",
							"feast"
						]
					}
				},
				"allergenGroups": {
					"type": "array",
					"uniqueItems": true,
					"minItems": 1,
					"description": "One of the 14 major food allergens; see https://erudus.com/food-allergens for more information.",
					"items": {
						"type": "string",
						"enum": [
							"celery",
							"crustaceans",
							"eggs",
							"fish",
							"gluten",
							"lupin",
							"milk",
							"molluscs",
							"mustard",
							"nuts",
							"peanuts",
							"sesame",
							"soya",
							"sulphites"
						]
					},
					"markdownDescription": "One of the 14 major food allergens; see https://erudus.com/food-allergens for more information."
				},
				"dishTypes": {
					"type": "array",
					"uniqueItems": true,
					"minItems": 1,
					"items": {
						"type": "string",
						"examples": [
							"appetizer",
							"bread",
							"cocktail",
							"dessert",
							"drink",
							"entree",
							"libation",
							"pastry",
							"salad",
							"side",
							"snack",
							"soup",
							"sweet"
						]
					}
				},
				"hasFluff": {
					"type": "boolean"
				},
				"hasFluffImages": {
					"type": "boolean"
				},
				"fluff": {
					"$ref": "util.json#/$defs/fluffObject"
				},
				"foundryImg": {
					"$ref": "util-foundry.json#/$defs/foundryImg"
				},
				"foundryAdvice": {
					"$ref": "entry.json"
				}
			},
			"additionalProperties": false
		},
		"recipe": {
			"anyOf": [
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"alias": {
							"$ref": "util.json#/$defs/alias"
						},
						"source": {
							"$ref": "util.json#/$defs/source"
						},
						"otherSources": {
							"$ref": "util.json#/$defs/otherSources"
						},
						"referenceSources": {
							"$ref": "util.json#/$defs/referenceSources"
						},
						"page": {
							"$ref": "util.json#/$defs/page"
						},
						"time": {
							"type": "object",
							"additionalProperties": false,
							"minProperties": 1,
							"patternProperties": {
								"^[a-zA-Z ]+$": {
									"$ref": "util-time.json#/$defs/timeMinutes"
								}
							}
						},
						"serves": {
							"oneOf": [
								{
									"type": "object",
									"properties": {
										"min": {
											"type": "integer"
										},
										"max": {
											"type": "integer"
										},
										"note": {
											"$ref": "entry.json"
										}
									},
									"required": [
										"min",
										"max"
									],
									"additionalProperties": false
								},
								{
									"type": "object",
									"properties": {
										"exact": {
											"type": "integer"
										},
										"note": {
											"$ref": "entry.json"
										}
									},
									"required": [
										"exact"
									],
									"additionalProperties": false
								}
							]
						},
						"makes": {
							"$ref": "entry.json"
						},
						"ingredients": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"equipment": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"instructions": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"noteCook": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"type": {
							"type": "string",
							"examples": [
								"Dwarven",
								"Elixir/Ale",
								"Elven",
								"Halfling",
								"Human",
								"Uncommon Cuisine",
								"Lost in Realmspace",
								"Ravenloft",
								"Sigil",
								"Solamnia",
								"The Feywild",
								"The Rock of Bral",
								"The Yawning Portal",
								"The Hearth",
								"The Gilded Horseshoe",
								"The Pink Flumph Theater",
								"The Low Lantern",
								"The Halfway Inn",
								"The Driftwood Tavern",
								"One-Eyed Jax",
								"The Moonstone Mask",
								"The Hissing Stones",
								"Barbarian",
								"Bard",
								"Cleric",
								"Druid",
								"Fighter",
								"Monk",
								"Paladin",
								"Ranger",
								"Rogue",
								"Sorcerer",
								"Warlock",
								"Wizard"
							]
						},
						"diet": {
							"type": "string",
							"description": "- C: Vegetarian [aka \"cheese\"]\n- V: Vegan\n- X: Omnivorous",
							"enum": [
								"C",
								"V",
								"X"
							],
							"markdownDescription": "- C: Vegetarian [aka &quot;cheese&quot;]\n- V: Vegan\n- X: Omnivorous"
						},
						"miscTags": {
							"type": "array",
							"uniqueItems": true,
							"minItems": 1,
							"items": {
								"type": "string",
								"enum": [
									"alcohol",
									"feast"
								]
							}
						},
						"allergenGroups": {
							"type": "array",
							"uniqueItems": true,
							"minItems": 1,
							"description": "One of the 14 major food allergens; see https://erudus.com/food-allergens for more information.",
							"items": {
								"type": "string",
								"enum": [
									"celery",
									"crustaceans",
									"eggs",
									"fish",
									"gluten",
									"lupin",
									"milk",
									"molluscs",
									"mustard",
									"nuts",
									"peanuts",
									"sesame",
									"soya",
									"sulphites"
								]
							},
							"markdownDescription": "One of the 14 major food allergens; see https://erudus.com/food-allergens for more information."
						},
						"dishTypes": {
							"type": "array",
							"uniqueItems": true,
							"minItems": 1,
							"items": {
								"type": "string",
								"examples": [
									"appetizer",
									"bread",
									"cocktail",
									"dessert",
									"drink",
									"entree",
									"libation",
									"pastry",
									"salad",
									"side",
									"snack",
									"soup",
									"sweet"
								]
							}
						},
						"hasFluff": {
							"type": "boolean"
						},
						"hasFluffImages": {
							"type": "boolean"
						},
						"fluff": {
							"$ref": "util.json#/$defs/fluffObject"
						},
						"foundryImg": {
							"$ref": "util-foundry.json#/$defs/foundryImg"
						},
						"foundryAdvice": {
							"$ref": "entry.json"
						}
					},
					"additionalProperties": false,
					"required": [
						"name",
						"source",
						"instructions",
						"ingredients"
					]
				},
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"alias": {
							"$ref": "util.json#/$defs/alias"
						},
						"source": {
							"$ref": "util.json#/$defs/source"
						},
						"otherSources": {
							"$ref": "util.json#/$defs/otherSources"
						},
						"referenceSources": {
							"$ref": "util.json#/$defs/referenceSources"
						},
						"page": {
							"$ref": "util.json#/$defs/page"
						},
						"time": {
							"type": "object",
							"additionalProperties": false,
							"minProperties": 1,
							"patternProperties": {
								"^[a-zA-Z ]+$": {
									"$ref": "util-time.json#/$defs/timeMinutes"
								}
							}
						},
						"serves": {
							"oneOf": [
								{
									"type": "object",
									"properties": {
										"min": {
											"type": "integer"
										},
										"max": {
											"type": "integer"
										},
										"note": {
											"$ref": "entry.json"
										}
									},
									"required": [
										"min",
										"max"
									],
									"additionalProperties": false
								},
								{
									"type": "object",
									"properties": {
										"exact": {
											"type": "integer"
										},
										"note": {
											"$ref": "entry.json"
										}
									},
									"required": [
										"exact"
									],
									"additionalProperties": false
								}
							]
						},
						"makes": {
							"$ref": "entry.json"
						},
						"ingredients": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"equipment": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"instructions": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"noteCook": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"type": {
							"type": "string",
							"examples": [
								"Dwarven",
								"Elixir/Ale",
								"Elven",
								"Halfling",
								"Human",
								"Uncommon Cuisine",
								"Lost in Realmspace",
								"Ravenloft",
								"Sigil",
								"Solamnia",
								"The Feywild",
								"The Rock of Bral",
								"The Yawning Portal",
								"The Hearth",
								"The Gilded Horseshoe",
								"The Pink Flumph Theater",
								"The Low Lantern",
								"The Halfway Inn",
								"The Driftwood Tavern",
								"One-Eyed Jax",
								"The Moonstone Mask",
								"The Hissing Stones",
								"Barbarian",
								"Bard",
								"Cleric",
								"Druid",
								"Fighter",
								"Monk",
								"Paladin",
								"Ranger",
								"Rogue",
								"Sorcerer",
								"Warlock",
								"Wizard"
							]
						},
						"diet": {
							"type": "string",
							"description": "- C: Vegetarian [aka \"cheese\"]\n- V: Vegan\n- X: Omnivorous",
							"enum": [
								"C",
								"V",
								"X"
							],
							"markdownDescription": "- C: Vegetarian [aka &quot;cheese&quot;]\n- V: Vegan\n- X: Omnivorous"
						},
						"miscTags": {
							"type": "array",
							"uniqueItems": true,
							"minItems": 1,
							"items": {
								"type": "string",
								"enum": [
									"alcohol",
									"feast"
								]
							}
						},
						"allergenGroups": {
							"type": "array",
							"uniqueItems": true,
							"minItems": 1,
							"description": "One of the 14 major food allergens; see https://erudus.com/food-allergens for more information.",
							"items": {
								"type": "string",
								"enum": [
									"celery",
									"crustaceans",
									"eggs",
									"fish",
									"gluten",
									"lupin",
									"milk",
									"molluscs",
									"mustard",
									"nuts",
									"peanuts",
									"sesame",
									"soya",
									"sulphites"
								]
							},
							"markdownDescription": "One of the 14 major food allergens; see https://erudus.com/food-allergens for more information."
						},
						"dishTypes": {
							"type": "array",
							"uniqueItems": true,
							"minItems": 1,
							"items": {
								"type": "string",
								"examples": [
									"appetizer",
									"bread",
									"cocktail",
									"dessert",
									"drink",
									"entree",
									"libation",
									"pastry",
									"salad",
									"side",
									"snack",
									"soup",
									"sweet"
								]
							}
						},
						"hasFluff": {
							"type": "boolean"
						},
						"hasFluffImages": {
							"type": "boolean"
						},
						"fluff": {
							"$ref": "util.json#/$defs/fluffObject"
						},
						"foundryImg": {
							"$ref": "util-foundry.json#/$defs/foundryImg"
						},
						"foundryAdvice": {
							"$ref": "entry.json"
						},
						"_copy": {
							"$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
						}
					},
					"additionalProperties": false,
					"required": [
						"_copy"
					]
				}
			]
		}
	},
	"properties": {
		"_meta": {
			"$ref": "util.json#/$defs/metaBlock"
		},
		"recipe": {
			"type": "array",
			"uniqueItems": true,
			"minItems": 1,
			"items": {
				"$ref": "#/$defs/recipe"
			}
		}
	},
	"required": [
		"recipe"
	],
	"additionalProperties": false
}