Added subfolders to the schemas subtree
This commit is contained in:
27
schemas/dnd/structured_events.schema.json
Normal file
27
schemas/dnd/structured_events.schema.json
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user