{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendry-io/json-schema/rendry-io-template-index-schema.json",
  "title": "TemplateIndex",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendry-io-templates-api-openapi.yml#/components/schemas/TemplateIndex",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "canvas_size": {
      "type": "string"
    },
    "preview_url": {
      "type": "string"
    },
    "variables": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Variable names the template accepts via dynamic_data"
    },
    "sample_data": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Realistic example values for every variable"
    },
    "composition": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      },
      "description": "Top-level layer count per type, e.g. {\"text\": 2, \"image\": 1}; group children are not counted"
    },
    "kind": {
      "type": "string",
      "enum": [
        "document"
      ],
      "description": "Present for PDF document starters; absent for existing image templates"
    },
    "authored_pages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "description": "Authored pages before table continuation; document starters only"
    }
  }
}