{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "adventures.json",
	"version": "1.10.38",
	"type": "object",
	"properties": {
		"adventure": {
			"type": "array",
			"minItems": 1,
			"uniqueItems": true,
			"items": {
				"type": "object",
				"properties": {
					"name": {
						"type": "string"
					},
					"alias": {
						"$ref": "util.json#/$defs/alias"
					},
					"id": {
						"$ref": "util.json#/$defs/corpusId"
					},
					"source": {
						"$ref": "util.json#/$defs/source"
					},
					"parentSource": {
						"$ref": "corpus-shared.json#/$defs/corpusParentSource"
					},
					"group": {
						"description": "The group under which this adventure should be listed in the navbar.",
						"type": "string",
						"enum": [
							"supplement",
							"supplement-alt",
							"prerelease",
							"homebrew",
							"organized-play",
							"other"
						],
						"markdownDescription": "The group under which this adventure should be listed in the navbar."
					},
					"author": {
						"type": "string"
					},
					"contents": {
						"$ref": "corpus-shared.json#/$defs/corpusContents"
					},
					"level": {
						"description": "The character levels that the adventure ranges across.",
						"oneOf": [
							{
								"type": "object",
								"properties": {
									"start": {
										"type": "integer"
									},
									"end": {
										"type": "integer"
									}
								},
								"additionalProperties": false,
								"required": [
									"start",
									"end"
								]
							},
							{
								"type": "object",
								"properties": {
									"custom": {
										"type": "string"
									}
								},
								"additionalProperties": false,
								"required": [
									"custom"
								]
							}
						],
						"markdownDescription": "The character levels that the adventure ranges across."
					},
					"published": {
						"$ref": "corpus-shared.json#/$defs/corpusPublished"
					},
					"revised": {
						"$ref": "corpus-shared.json#/$defs/corpusPublished"
					},
					"publishedOrder": {
						"description": "A sorting order for adventures within a single source.",
						"type": "integer",
						"markdownDescription": "A sorting order for adventures within a single source."
					},
					"cover": {
						"$ref": "corpus-shared.json#/$defs/corpusCover"
					},
					"coverCredit": {
						"$ref": "corpus-shared.json#/$defs/corpusCoverCredit"
					},
					"storyline": {
						"type": "string",
						"examples": [
							"Starter Set",
							"Tyranny of Dragons",
							"Elemental Evil",
							"Rage of Demons",
							"Ravenloft",
							"Storm King's Thunder",
							"Tales from the Yawning Portal",
							"Tomb of Annihilation",
							"Waterdeep",
							"Ravnica",
							"Extra Life",
							"Ghosts of Saltmarsh",
							"Acquisitions Incorporated",
							"Essentials Kit",
							"Stranger Things",
							"Baldur's Gate",
							"Eberron",
							"Rick and Morty",
							"Wildemount",
							"Icewind Dale",
							"Mythic Odysseys of Theros",
							"Candlekeep Mysteries",
							"Adventures in the Forgotten Realms",
							"The Wild Beyond the Witchlight",
							"Ixalan",
							"NERDS Restoring Harmony",
							"Strixhaven",
							"Critical Role",
							"Journeys through the Radiant Citadel",
							"Spelljammer",
							"Dragonlance",
							"Keys from the Golden Vault",
							"Giants of the Star Forge",
							"Minecraft",
							"Planescape",
							"Adventure Atlas",
							"Heroes' Feast",
							"Family Friendly",
							"Vecna",
							"Quests from the Infinite Staircase",
							"LEGO",
							"Shadow Realm",
							"Animated Series",
							"Dragon Delves",
							"Forgotten Realms",
							"International Day of Play",
							"Thay",
							"World of Warcraft",
							"Miscellaneous"
						]
					},
					"alAveragePlayerLevel": {
						"description": "Adventurers League Average Player Level; for use in homebrew.",
						"type": "integer",
						"markdownDescription": "Adventurers League Average Player Level; for use in homebrew."
					},
					"alLength": {
						"description": "Adventurers League length (in hours); for use in homebrew.",
						"type": "object",
						"oneOf": [
							{
								"properties": {
									"min": {
										"type": "integer"
									},
									"max": {
										"type": "integer"
									}
								},
								"required": [
									"min",
									"max"
								]
							},
							{
								"properties": {
									"exact": {
										"type": "integer"
									}
								},
								"required": [
									"exact"
								]
							}
						],
						"markdownDescription": "Adventurers League length (in hours); for use in homebrew."
					},
					"alId": {
						"description": "Adventurers League ID; for use in homebrew.",
						"type": "string",
						"markdownDescription": "Adventurers League ID; for use in homebrew."
					}
				},
				"additionalProperties": false,
				"required": [
					"name",
					"id",
					"source",
					"contents",
					"level",
					"published",
					"storyline",
					"group"
				]
			}
		}
	},
	"additionalProperties": false
}