{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "backgrounds.json",
	"version": "1.3.15",
	"type": "object",
	"$defs": {
		"backgroundData": {
			"type": "object",
			"properties": {
				"name": {
					"type": "string"
				},
				"source": {
					"$ref": "util.json#/$defs/source"
				},
				"page": {
					"$ref": "util.json#/$defs/page"
				},
				"reprintedAs": {
					"$ref": "util.json#/$defs/reprintedAs"
				},
				"edition": {
					"$ref": "util-edition.json#/$defs/edition"
				},
				"prerequisite": {
					"$ref": "util.json#/$defs/prerequisite"
				},
				"skillProficiencies": {
					"$ref": "util.json#/$defs/skillProficiencies"
				},
				"toolProficiencies": {
					"$ref": "util.json#/$defs/toolProficiencies"
				},
				"languageProficiencies": {
					"$ref": "util.json#/$defs/languageProficiencies"
				},
				"skillToolLanguageProficiencies": {
					"$ref": "util.json#/$defs/skillToolLanguageProficiencies"
				},
				"weaponProficiencies": {
					"$ref": "util.json#/$defs/weaponProficiencies"
				},
				"itemMasteries": {
					"$ref": "util.json#/$defs/itemMasteries"
				},
				"itemMasteriesProgression": {
					"$ref": "util.json#/$defs/itemMasteriesProgression"
				},
				"armorProficiencies": {
					"$ref": "util.json#/$defs/armorProficiencies"
				},
				"feats": {
					"$ref": "util.json#/$defs/additionalFeatsArray"
				},
				"entries": {
					"type": "array",
					"items": {
						"$ref": "entry.json"
					}
				},
				"additionalSources": {
					"$ref": "util.json#/$defs/additionalSources"
				},
				"otherSources": {
					"$ref": "util.json#/$defs/otherSources"
				},
				"referenceSources": {
					"$ref": "util.json#/$defs/referenceSources"
				},
				"startingEquipment": {
					"$ref": "util.json#/$defs/startingEquipment"
				},
				"additionalSpells": {
					"$ref": "util-additionalspells.json#/$defs/additionalSpellsArray"
				},
				"ability": {
					"$ref": "util.json#/$defs/abilityScores"
				},
				"fromFeature": {
					"description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
					"type": "object",
					"patternProperties": {
						"^.*$": {
							"type": "boolean",
							"const": true
						}
					},
					"markdownDescription": "A lookup of other properties which should be tied to the &quot;Feature: ...&quot; entry. This is used when e.g. customizing a background during import to a VTT."
				},
				"hasFluff": {
					"type": "boolean"
				},
				"hasFluffImages": {
					"type": "boolean"
				},
				"fluff": {
					"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
					"$ref": "util.json#/$defs/fluffObject",
					"markdownDescription": "This is intended to be used for Homebrew only - site data should include a fluff file per source"
				}
			},
			"additionalProperties": false
		},
		"background": {
			"anyOf": [
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"source": {
							"$ref": "util.json#/$defs/source"
						},
						"page": {
							"$ref": "util.json#/$defs/page"
						},
						"reprintedAs": {
							"$ref": "util.json#/$defs/reprintedAs"
						},
						"edition": {
							"$ref": "util-edition.json#/$defs/edition"
						},
						"prerequisite": {
							"$ref": "util.json#/$defs/prerequisite"
						},
						"skillProficiencies": {
							"$ref": "util.json#/$defs/skillProficiencies"
						},
						"toolProficiencies": {
							"$ref": "util.json#/$defs/toolProficiencies"
						},
						"languageProficiencies": {
							"$ref": "util.json#/$defs/languageProficiencies"
						},
						"skillToolLanguageProficiencies": {
							"$ref": "util.json#/$defs/skillToolLanguageProficiencies"
						},
						"weaponProficiencies": {
							"$ref": "util.json#/$defs/weaponProficiencies"
						},
						"itemMasteries": {
							"$ref": "util.json#/$defs/itemMasteries"
						},
						"itemMasteriesProgression": {
							"$ref": "util.json#/$defs/itemMasteriesProgression"
						},
						"armorProficiencies": {
							"$ref": "util.json#/$defs/armorProficiencies"
						},
						"feats": {
							"$ref": "util.json#/$defs/additionalFeatsArray"
						},
						"entries": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"additionalSources": {
							"$ref": "util.json#/$defs/additionalSources"
						},
						"otherSources": {
							"$ref": "util.json#/$defs/otherSources"
						},
						"referenceSources": {
							"$ref": "util.json#/$defs/referenceSources"
						},
						"startingEquipment": {
							"$ref": "util.json#/$defs/startingEquipment"
						},
						"additionalSpells": {
							"$ref": "util-additionalspells.json#/$defs/additionalSpellsArray"
						},
						"ability": {
							"$ref": "util.json#/$defs/abilityScores"
						},
						"fromFeature": {
							"description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
							"type": "object",
							"patternProperties": {
								"^.*$": {
									"type": "boolean",
									"const": true
								}
							},
							"markdownDescription": "A lookup of other properties which should be tied to the &quot;Feature: ...&quot; entry. This is used when e.g. customizing a background during import to a VTT."
						},
						"hasFluff": {
							"type": "boolean"
						},
						"hasFluffImages": {
							"type": "boolean"
						},
						"fluff": {
							"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
							"$ref": "util.json#/$defs/fluffObject",
							"markdownDescription": "This is intended to be used for Homebrew only - site data should include a fluff file per source"
						}
					},
					"additionalProperties": false,
					"required": [
						"name",
						"source",
						"entries"
					]
				},
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"source": {
							"$ref": "util.json#/$defs/source"
						},
						"page": {
							"$ref": "util.json#/$defs/page"
						},
						"reprintedAs": {
							"$ref": "util.json#/$defs/reprintedAs"
						},
						"edition": {
							"$ref": "util-edition.json#/$defs/edition"
						},
						"prerequisite": {
							"$ref": "util.json#/$defs/prerequisite"
						},
						"skillProficiencies": {
							"$ref": "util.json#/$defs/skillProficiencies"
						},
						"toolProficiencies": {
							"$ref": "util.json#/$defs/toolProficiencies"
						},
						"languageProficiencies": {
							"$ref": "util.json#/$defs/languageProficiencies"
						},
						"skillToolLanguageProficiencies": {
							"$ref": "util.json#/$defs/skillToolLanguageProficiencies"
						},
						"weaponProficiencies": {
							"$ref": "util.json#/$defs/weaponProficiencies"
						},
						"itemMasteries": {
							"$ref": "util.json#/$defs/itemMasteries"
						},
						"itemMasteriesProgression": {
							"$ref": "util.json#/$defs/itemMasteriesProgression"
						},
						"armorProficiencies": {
							"$ref": "util.json#/$defs/armorProficiencies"
						},
						"feats": {
							"$ref": "util.json#/$defs/additionalFeatsArray"
						},
						"entries": {
							"type": "array",
							"items": {
								"$ref": "entry.json"
							}
						},
						"additionalSources": {
							"$ref": "util.json#/$defs/additionalSources"
						},
						"otherSources": {
							"$ref": "util.json#/$defs/otherSources"
						},
						"referenceSources": {
							"$ref": "util.json#/$defs/referenceSources"
						},
						"startingEquipment": {
							"$ref": "util.json#/$defs/startingEquipment"
						},
						"additionalSpells": {
							"$ref": "util-additionalspells.json#/$defs/additionalSpellsArray"
						},
						"ability": {
							"$ref": "util.json#/$defs/abilityScores"
						},
						"fromFeature": {
							"description": "A lookup of other properties which should be tied to the \"Feature: ...\" entry. This is used when e.g. customizing a background during import to a VTT.",
							"type": "object",
							"patternProperties": {
								"^.*$": {
									"type": "boolean",
									"const": true
								}
							},
							"markdownDescription": "A lookup of other properties which should be tied to the &quot;Feature: ...&quot; entry. This is used when e.g. customizing a background during import to a VTT."
						},
						"hasFluff": {
							"type": "boolean"
						},
						"hasFluffImages": {
							"type": "boolean"
						},
						"fluff": {
							"description": "This is intended to be used for Homebrew only - site data should include a fluff file per source",
							"$ref": "util.json#/$defs/fluffObject",
							"markdownDescription": "This is intended to be used for Homebrew only - site data should include a fluff file per source"
						},
						"_copy": {
							"$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
						}
					},
					"additionalProperties": false,
					"required": [
						"_copy"
					]
				}
			]
		}
	},
	"properties": {
		"background": {
			"type": "array",
			"minItems": 1,
			"uniqueItems": true,
			"items": {
				"$ref": "#/$defs/background"
			}
		},
		"_meta": {
			"$ref": "util.json#/$defs/metaBlock"
		}
	},
	"required": [
		"background"
	],
	"additionalProperties": false
}