{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://rosea.invalid/schema/hope-sentence.json", "title": "HopeSentence", "description": "One entry of the curated hope library (CLAUDE.md ยง6.1). The only words one player can send another are ids of these.", "type": "object", "additionalProperties": false, "required": ["id", "text", "source", "use", "tone", "promisesOutcome"], "properties": { "id": { "description": "Stable, lowercase, hyphenated. A message between players carries only this.", "type": "string", "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$", "maxLength": 64 }, "text": { "type": "object", "additionalProperties": false, "required": ["en"], "properties": { "en": { "type": "string", "minLength": 1 }, "cs": { "type": "string", "minLength": 1 } } }, "source": { "type": "object", "additionalProperties": false, "required": ["work", "author", "tradition", "translation", "publicDomain", "verifiedBy", "verifiedAt"], "properties": { "work": { "type": "string", "minLength": 1 }, "author": { "type": ["string", "null"] }, "tradition": { "description": "A lowercase tag such as `biblical` or `stoic`. `rosea` marks a line the author wrote for this game.", "type": "string", "pattern": "^[a-z]+(-[a-z]+)*$" }, "translation": { "type": ["string", "null"] }, "publicDomain": { "type": "boolean" }, "verifiedBy": { "type": "string", "minLength": 1 }, "verifiedAt": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" } } }, "use": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "type": "string", "enum": ["sunset", "comfort", "thanks"] } }, "tone": { "type": "string", "pattern": "^[a-z]+(-[a-z]+)*$" }, "promisesOutcome": { "type": "boolean" } } }