themes-kindergarten/schemas/gallery_of_art.schema.json
Alex Dunmow ffe46a146c initial: theme plugin kindergarten
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/kindergarten.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:35 +08:00

53 lines
1.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Gallery of Art",
"description": "Polaroid-style grid for kid artwork with privacy toggle for child names.",
"type": "object",
"properties": {
"title": {
"type": "string",
"title": "Title",
"description": "Optional heading above the gallery.",
"x-editor": "text"
},
"showChildName": {
"type": "string",
"title": "Show Child Names",
"description": "Privacy toggle. When 'false', child names are omitted from the rendered gallery.",
"x-editor": "select",
"enum": ["true", "false"],
"default": "true"
},
"items": {
"type": "array",
"title": "Artworks",
"description": "Collection of artworks. Each entry has an image, child name, and age.",
"default": [],
"x-editor": "collection",
"items": {
"type": "object",
"properties": {
"image": {
"type": "string",
"title": "Image",
"description": "Artwork image (media reference).",
"x-editor": "media"
},
"childName": {
"type": "string",
"title": "Child Name",
"description": "Artist's first name. Hidden when 'Show Child Names' is off.",
"x-editor": "text"
},
"age": {
"type": "integer",
"title": "Age",
"description": "Artist's age (years).",
"x-editor": "number"
}
}
}
}
}
}