From 7f76534af0c504c83cf9933c5df3879fecef6e25 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Fri, 15 May 2026 08:59:00 -0500 Subject: [PATCH] Added subfolders to the schemas subtree --- schemas/dnd/structured_events.schema.json | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 schemas/dnd/structured_events.schema.json 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 +}