Brand Studio docs
Engineering manualSchema reference

Template Registry

Declared schema: schemas/template-registry.schema.json

Source: schemas/template-registry.schema.json. This is the complete declaration, including nested definitions and constraints. Its presence is not evidence that a runtime producer or consumer validates against it.

All schemas · Data structures and lineage

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://brand-studio.local/schemas/template-registry.schema.json",
  "title": "Template Registry",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "stage_id",
    "templates"
  ],
  "properties": {
    "stage_id": {
      "type": "string",
      "minLength": 1
    },
    "templates": {
      "type": "array",
      "minItems": 12,
      "items": {
        "type": "object",
        "required": [
          "template_id",
          "category",
          "template_dir",
          "rendered_path",
          "input_view_model_schema",
          "required_sections",
          "layout_rules"
        ],
        "properties": {
          "template_id": {
            "type": "string",
            "minLength": 1
          },
          "category": {
            "type": "string",
            "minLength": 1
          },
          "template_dir": {
            "type": "string",
            "minLength": 1
          },
          "rendered_path": {
            "type": "string",
            "minLength": 1
          },
          "input_view_model_schema": {
            "type": "string",
            "minLength": 1
          },
          "required_sections": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string"
            }
          },
          "layout_rules": {
            "type": "object",
            "required": [
              "max_width",
              "max_card_height",
              "column_behavior",
              "overflow_behavior",
              "image_behavior",
              "raw_json_behavior",
              "review_gate_behavior",
              "screenshot_browser_smoke_required"
            ]
          }
        }
      }
    }
  }
}