{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-task-asset-draft-brand-compliance-request-schema.json",
  "title": "TaskAssetDraftBrandComplianceRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-brand-compliance-api-openapi.yml#/components/schemas/TaskAssetDraftBrandComplianceRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "status": {
      "type": "string",
      "description": "Brand compliance status of the draft",
      "enum": [
        "approved",
        "declined",
        "not_reviewed"
      ]
    },
    "categories": {
      "type": "array",
      "description": "List of compliance categories",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier of the category"
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Brand compliance status of the category",
            "enum": [
              "compliant",
              "not compliant",
              "not applicable",
              null
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes left by the reviewer for the category"
          },
          "criteria": {
            "type": "array",
            "description": "List of criteria",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Unique identifier of the criterion"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Description of the criterion"
                },
                "selected": {
                  "type": [
                    "boolean",
                    "null"
                  ],
                  "description": "Whether the criterion is selected or not"
                }
              },
              "required": [
                "id",
                "description",
                "selected"
              ]
            }
          }
        },
        "required": [
          "id",
          "status",
          "notes",
          "criteria"
        ]
      }
    }
  },
  "required": [
    "status",
    "categories"
  ]
}