{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Art Wall",
  "description": "Polaroid-style wall of children's artwork with artist names.",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "title": "Title",
      "description": "Optional heading above the wall (e.g. 'Our art wall').",
      "x-editor": "text"
    },
    "showChildName": {
      "type": "boolean",
      "title": "Show artist name",
      "description": "Show each child's name and age under their artwork.",
      "default": true,
      "x-editor": "select"
    },
    "items": {
      "type": "array",
      "title": "Artworks",
      "description": "Each piece of artwork.",
      "default": [],
      "x-editor": "array",
      "items": {
        "type": "object",
        "properties": {
          "image": {
            "type": "string",
            "title": "Artwork image",
            "description": "The scanned or photographed artwork.",
            "x-editor": "media"
          },
          "childName": {
            "type": "string",
            "title": "Artist name",
            "description": "First name of the child who made it.",
            "x-editor": "text"
          },
          "age": {
            "type": "string",
            "title": "Age",
            "description": "The child's age (optional).",
            "x-editor": "text"
          }
        }
      }
    }
  }
}
