{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/brewpage/main/json-schema/brewpage-json-document-schema.json", "title": "BrewPage JSON Document", "description": "A stored JSON document. Up to 10,000 docs per collection (namespace). Created via POST /api/json.", "type": "object", "required": ["id", "namespace", "link", "ownerToken"], "properties": { "id": {"type": "string", "minLength": 10, "maxLength": 10}, "namespace": {"type": "string", "pattern": "^[a-z0-9-]{1,32}$"}, "link": {"type": "string", "format": "uri"}, "ownerLink": {"type": "string", "format": "uri"}, "ownerToken": {"type": "string"}, "content": { "description": "Arbitrary JSON document payload." }, "ttlDays": {"type": "integer", "minimum": 1, "maximum": 30}, "passwordProtected": {"type": "boolean"}, "createdAt": {"type": "string", "format": "date-time"}, "expiresAt": {"type": "string", "format": "date-time"} }, "additionalProperties": false }