magicciv/public/resources/encyclopedia/encyclopedia.schema.json
2026-04-07 17:52:04 -07:00

35 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "encyclopedia",
"title": "Encyclopedia Entry",
"description": "A game guide encyclopedia entry explaining a system, mechanic, or concept.",
"allOf": [{ "$ref": "base.schema.json" }],
"type": "object",
"required": ["id", "name", "category", "summary", "body", "tags"],
"properties": {
"category": {
"type": "string",
"enum": ["world_magic", "magic_schools", "combat", "civilization", "world"],
"description": "Which encyclopedia section this entry belongs to."
},
"summary": {
"type": "string",
"description": "One-sentence overview shown on the card in the encyclopedia grid."
},
"body": {
"type": "string",
"description": "Multi-paragraph content. Use \\n\\n for paragraph breaks."
},
"design_notes": {
"type": "string",
"description": "Developer commentary on design philosophy and inspirations.",
"default": ""
},
"related": {
"type": "array",
"items": { "type": "string" },
"default": [],
"description": "IDs of related encyclopedia entries for cross-linking."
}
}
}