{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://forge.maximumdirect.net/eric/narratio-reference-catalog/schemas/glossary-v1.schema.json", "title": "Glossary named collections v1", "$ref": "#/$defs/document", "$defs": { "entry": { "type": "object", "required": [ "id", "name", "category" ], "properties": { "id": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "category": { "type": "string", "minLength": 1 }, "description": { "type": "string" }, "aliases": { "type": "array", "items": { "type": "string", "minLength": 1 } }, "plural": { "anyOf": [ { "type": "string", "minLength": 1 }, { "type": "null" } ] } }, "additionalProperties": true }, "partialCollection": { "type": "object", "properties": { "instruction": { "type": "string" }, "entries": { "type": "array", "items": { "$ref": "#/$defs/entry" } } }, "additionalProperties": false }, "collection": { "allOf": [ { "$ref": "#/$defs/partialCollection" }, { "required": [ "entries" ] } ] }, "document": { "type": "object", "additionalProperties": { "$ref": "#/$defs/collection" } } } }