{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-kafka/main/json-schema/apache-kafka-connector-status-schema.json",
  "title": "ConnectorStatus",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apache-kafka-connectors-api-openapi.yml#/components/schemas/ConnectorStatus",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "connector": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "UNASSIGNED",
            "RUNNING",
            "PAUSED",
            "FAILED",
            "STOPPED"
          ]
        },
        "worker_id": {
          "type": "string"
        }
      }
    },
    "tasks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TaskStatus"
      }
    },
    "type": {
      "type": "string"
    }
  },
  "$defs": {
    "TaskStatus": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "state": {
          "type": "string",
          "enum": [
            "UNASSIGNED",
            "RUNNING",
            "PAUSED",
            "FAILED"
          ]
        },
        "worker_id": {
          "type": "string"
        },
        "trace": {
          "type": "string"
        }
      }
    }
  }
}