{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidplate-app/json-schema/vidplate-app-template-version-schema.json",
  "title": "TemplateVersion",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidplate-app-openapi.json#/components/schemas/TemplateVersion",
  "type": "object",
  "properties": {
    "object": {
      "const": "template_version"
    },
    "id": {
      "type": "string"
    },
    "template_id": {
      "type": "string"
    },
    "version": {
      "type": "integer"
    },
    "kind": {
      "enum": [
        "static",
        "video"
      ]
    },
    "engine": {
      "enum": [
        "vidcanvas",
        "vidmotion"
      ]
    },
    "status": {
      "enum": [
        "active",
        "deprecated",
        "archived"
      ]
    },
    "schema_hash": {
      "type": "string"
    },
    "compatibility": {
      "enum": [
        "initial",
        "compatible",
        "breaking"
      ]
    },
    "changes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "field": {
            "type": [
              "string",
              "null"
            ]
          },
          "breaking": {
            "type": "boolean"
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "requires": {
      "type": "object",
      "properties": {
        "webgpu": {
          "type": "boolean"
        }
      }
    },
    "formats": {
      "type": "object"
    },
    "durations_seconds": {
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "required_fields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}