{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-models-worker-schema.json",
  "title": "models.Worker",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-workers-api-openapi.yml#/components/schemas/models.Worker",
  "type": "object",
  "properties": {
    "activeError": {
      "type": "string"
    },
    "activities": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/models.Activity"
      }
    },
    "adminStatus": {
      "$ref": "#/$defs/models.WorkerStatus"
    },
    "createdAt": {
      "type": "string"
    },
    "cwmVersion": {
      "type": "string"
    },
    "infraJobId": {
      "type": "string"
    },
    "isJobChecked": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/models.WorkerStatus"
    },
    "updatedAt": {
      "type": "string"
    },
    "workerProfile": {
      "type": "string"
    }
  },
  "$defs": {
    "models.Activity": {
      "type": "object",
      "properties": {
        "adapterId": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "inputSchema": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "name": {
          "type": "string"
        },
        "outputSchema": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        },
        "packageName": {
          "type": "string"
        }
      }
    },
    "models.WorkerStatus": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8
      ],
      "x-enum-comments": {
        "Deleting": "todo: support",
        "Stopping": "todo: support"
      },
      "x-enum-varnames": [
        "Unknown",
        "Initialized",
        "Running",
        "Stopped",
        "Deleted",
        "Failed",
        "Initializing",
        "Stopping",
        "Deleting"
      ]
    }
  }
}