diff --git a/schemas/dnd/structured_events.schema.json b/schemas/dnd/structured_events.schema.json new file mode 100644 index 0000000..45a026b --- /dev/null +++ b/schemas/dnd/structured_events.schema.json @@ -0,0 +1,27 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://example.local/structured_events.schema.json", + "type": "object", + "required": ["summary", "events"], + "properties": { + "summary": { + "type": "string", + "minLength": 1 + }, + "events": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "required": ["title", "type"], + "properties": { + "title": {"type": "string", "minLength": 1}, + "type": {"type": "string", "enum": ["combat", "social", "travel", "discovery", "other"]}, + "notes": {"type": "string"} + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false +}