{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "district.schema.json", "title": "District Metadata", "description": "District definition file — one per district directory (D-036). Identity derived from directory path.", "type": "object", "required": ["display_name", "description", "locations", "npc_count"], "additionalProperties": false, "properties": { "canonical_id": { "type": "string", "pattern": "^[a-z]+\\.[a-z]+\\.[a-z-]+$", "description": "Deprecated — derived from directory path at load time. If present, must match {system}.{station}.{district}." }, "display_name": { "type": "string", "minLength": 1 }, "system": { "type": "string", "pattern": "^[a-z]+$", "description": "Deprecated — derived from directory path." }, "station": { "type": "string", "pattern": "^[a-z]+$", "description": "Deprecated — derived from directory path." }, "district": { "type": "string", "pattern": "^[a-z-]+$", "description": "Deprecated — derived from directory path." }, "description": { "type": "string", "minLength": 1 }, "locations": { "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }, "minItems": 1, "uniqueItems": true }, "npc_count": { "type": "integer", "minimum": 0 } } }