{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-cognitive-services/json-schema/microsoft-cognitive-services-rai-topic-schema.json",
  "title": "RaiTopic",
  "description": "Cognitive Services Rai Topic.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-cognitive-services-raitopics-api-openapi.yml#/components/schemas/RaiTopic",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/RaiTopicProperties",
      "description": "Properties of Cognitive Services Rai Topic."
    },
    "etag": {
      "type": "string",
      "description": "Resource Etag.",
      "readOnly": true
    },
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      },
      "x-ms-mutability": [
        "read",
        "update",
        "create"
      ]
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
    }
  ],
  "$defs": {
    "RaiTopicProperties": {
      "type": "object",
      "description": "RAI Custom Topic properties.",
      "properties": {
        "topicId": {
          "type": "string",
          "description": "The unique identifier of the custom topic."
        },
        "topicName": {
          "type": "string",
          "description": "The name of the custom topic."
        },
        "description": {
          "type": "string",
          "description": "Description of the custom topic."
        },
        "sampleBlobUrl": {
          "type": "string",
          "description": "Sample blob url for the custom topic."
        },
        "status": {
          "type": "string",
          "description": "Status of the custom topic."
        },
        "failedReason": {
          "type": "string",
          "description": "Failed reason if the status is Failed."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Creation time of the custom topic."
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Last modified time of the custom topic."
        }
      }
    }
  }
}