themes-kindergarten/blocks/gallery_of_art.schema.json
Alex Dunmow dccd269ab2 feat: convert to codeless .bnp — templates + manifest, Go/templ deleted (WO-WZ-021)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-04 15:17:12 +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"
}
}
}
}
}
}