{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trendswap-app/json-schema/trendswap-app-template-schema.json",
  "title": "Template",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trendswap-app-openapi.json#/components/schemas/Template",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "duration": {
      "type": "integer",
      "description": "Duration in seconds"
    },
    "preview_url": {
      "type": "string",
      "format": "uri"
    },
    "poster_url": {
      "type": "string",
      "format": "uri"
    },
    "orientation": {
      "type": "string",
      "enum": [
        "vertical",
        "horizontal",
        "square",
        "both"
      ]
    },
    "photos_required": {
      "type": "integer"
    },
    "supported_resolutions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "status": {
      "type": "string"
    },
    "tag": {
      "type": "string"
    }
  }
}