{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://json2video.com/docs/v2/movie-schema.json",
  "title": "JSON2Video Movie",
  "description": "PLACEHOLDER. The real JSON Schema for the Movie object will be added in Phase 6 of the documentation site overhaul (see plans/new-documentation-site.md). TODO(phase-6): generate from api/endpoints/movies-post/ or hand-author from api-reference/json-syntax/movie.md.",
  "type": "object",
  "required": ["scenes"],
  "properties": {
    "scenes": {
      "type": "array",
      "items": { "type": "object" }
    },
    "resolution": {
      "type": "string",
      "enum": [
        "sd",
        "hd",
        "full-hd",
        "squared",
        "instagram-story",
        "instagram-feed",
        "twitter-landscape",
        "twitter-portrait",
        "custom"
      ]
    },
    "width": { "type": "integer", "minimum": 1 },
    "height": { "type": "integer", "minimum": 1 },
    "quality": { "type": "string" },
    "cache": { "type": "boolean", "default": true },
    "variables": { "type": "object" },
    "client_data": { "type": "object" }
  }
}
