{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://vclaw.dev/schemas/video/artifacts/cinema-geography-map.schema.json",
  "title": "Cinema Geography Map",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "projectSlug", "sceneMapId", "generatedAt", "landmarks", "axis", "cameraSides", "movementPaths", "contentHash"],
  "properties": {
    "schemaVersion": { "const": 1 },
    "projectSlug": { "$ref": "#/$defs/text" },
    "sceneMapId": { "$ref": "#/$defs/text" },
    "generatedAt": { "type": "string", "format": "date-time" },
    "landmarks": { "type": "array", "minItems": 2, "items": { "type": "object", "additionalProperties": false, "required": ["landmarkId", "x", "y", "z"], "properties": { "landmarkId": { "$ref": "#/$defs/text" }, "x": { "type": "number" }, "y": { "type": "number" }, "z": { "type": "number" } } } },
    "axis": { "type": "object", "additionalProperties": false, "required": ["fromLandmarkId", "toLandmarkId"], "properties": { "fromLandmarkId": { "$ref": "#/$defs/text" }, "toLandmarkId": { "$ref": "#/$defs/text" } } },
    "cameraSides": { "type": "array", "minItems": 1, "items": { "type": "object", "additionalProperties": false, "required": ["sideId", "screenDirection", "lightDirection", "allowedLandmarkIds"], "properties": { "sideId": { "$ref": "#/$defs/text" }, "screenDirection": { "enum": ["left-to-right", "right-to-left", "neutral"] }, "lightDirection": { "$ref": "#/$defs/text" }, "allowedLandmarkIds": { "$ref": "#/$defs/stringArray" } } } },
    "movementPaths": { "type": "array", "items": { "type": "object", "additionalProperties": false, "required": ["pathId", "fromLandmarkId", "toLandmarkId", "direction"], "properties": { "pathId": { "$ref": "#/$defs/text" }, "fromLandmarkId": { "$ref": "#/$defs/text" }, "toLandmarkId": { "$ref": "#/$defs/text" }, "direction": { "$ref": "#/$defs/text" } } } },
    "contentHash": { "$ref": "#/$defs/hash" }
  },
  "$defs": { "text": { "type": "string", "minLength": 1 }, "stringArray": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/text" } }, "hash": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" } }
}
