{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://vclaw.dev/schemas/video/artifacts/show-bible.schema.json",
  "title": "ShowBibleArtifact",
  "type": "object",
  "required": ["schemaVersion", "projectSlug", "generatedAt", "showTitle", "cast", "locations", "voices", "episodes"],
  "additionalProperties": false,
  "properties": {
    "schemaVersion": { "const": 1 },
    "projectSlug": { "type": "string", "minLength": 1 },
    "generatedAt": { "type": "string", "format": "date-time" },
    "showTitle": { "type": "string", "minLength": 1 },
    "premise": { "type": "string" },
    "style": { "type": "string" },
    "cast": { "type": "array", "items": { "$ref": "#/definitions/ShowCastMember" } },
    "locations": { "type": "array", "items": { "$ref": "#/definitions/ShowLocation" } },
    "voices": { "type": "array", "items": { "$ref": "#/definitions/ShowVoice" } },
    "episodes": { "type": "array", "items": { "$ref": "#/definitions/ShowEpisode" } }
  },
  "definitions": {
    "ShowCastMember": {
      "type": "object",
      "required": ["name"],
      "additionalProperties": false,
      "properties": {
        "name": { "type": "string", "minLength": 1 },
        "description": { "type": "string" },
        "sheetRef": { "type": "string" },
        "voice": { "type": "string" }
      }
    },
    "ShowLocation": {
      "type": "object",
      "required": ["name"],
      "additionalProperties": false,
      "properties": {
        "name": { "type": "string", "minLength": 1 },
        "description": { "type": "string" },
        "plateRef": { "type": "string" },
        "views": { "type": "array", "items": { "type": "string" } }
      }
    },
    "ShowVoice": {
      "type": "object",
      "required": ["name"],
      "additionalProperties": false,
      "properties": {
        "name": { "type": "string", "minLength": 1 },
        "character": { "type": "string" },
        "clipPath": { "type": "string" },
        "description": { "type": "string" }
      }
    },
    "ShowEpisode": {
      "type": "object",
      "required": ["id", "title"],
      "additionalProperties": false,
      "properties": {
        "id": { "type": "string", "minLength": 1 },
        "title": { "type": "string", "minLength": 1 },
        "logline": { "type": "string" },
        "scenes": { "type": "array", "items": { "type": "string" } }
      }
    }
  }
}
