{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://makeasciiart.com/agent/scene-schema-v1.json",
  "title": "MakeASCIIArt Recursive Scene v1",
  "description": "Local deterministic vector-text scene; three prepared zoom levels. Scene data is never uploaded by the CLI.",
  "type": "object",
  "additionalProperties": false,
  "required": ["version","title","seed","macro","focus","detail","words","microWords","colors","width","height"],
  "properties": {
    "version": {"const":1},
    "title": {"type":"string","minLength":1,"maxLength":72,"pattern":"^[^\\u0000-\\u001F\\u007F]+$"},
    "seed": {"type":"integer","minimum":0,"maximum":1000000},
    "macro": {"type":"string","minLength":1,"maxLength":2},
    "focus": {"type":"string","minLength":1,"maxLength":10},
    "detail": {"type":"string","minLength":1,"maxLength":12},
    "words": {"$ref":"#/$defs/words"},
    "microWords": {"$ref":"#/$defs/words"},
    "colors": {
      "type":"object","additionalProperties":false,"required":["background","ink","accent"],
      "properties": {
        "background":{"$ref":"#/$defs/color"},
        "ink":{"$ref":"#/$defs/color"},
        "accent":{"$ref":"#/$defs/color"}
      }
    },
    "width":{"const":1000},"height":{"const":1000}
  },
  "$defs": {
    "color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},
    "words":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"string","minLength":1,"maxLength":32}}
  }
}
