{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-override-creative-schema.json",
  "title": "OverrideCreative",
  "description": "A creative's design: the boxes and scenes with their settings.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-creative-overrides-api-openapi.yml#/components/schemas/OverrideCreative",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "nodeId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "type": "string"
    },
    "backgroundUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "boxes": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "scenes": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "dataSourceId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "stage": {
      "description": "Absent when not set.",
      "type": "string"
    },
    "shareLockDefault": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ]
    },
    "shareEditsSkipApproval": {
      "type": "boolean"
    },
    "stageWidth": {
      "type": "integer"
    },
    "stageHeight": {
      "type": "integer"
    },
    "touchEnabled": {
      "type": "boolean"
    },
    "approvalState": {
      "type": "string",
      "enum": [
        "draft",
        "pending",
        "approved",
        "rejected"
      ],
      "description": "Review state. Editing an approved row returns it to `draft`."
    },
    "updatedAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    }
  },
  "required": [
    "id",
    "nodeId",
    "name",
    "backgroundUrl",
    "boxes",
    "scenes",
    "dataSourceId",
    "shareLockDefault",
    "shareEditsSkipApproval",
    "approvalState",
    "updatedAt"
  ]
}