{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onclarity-com/json-schema/onclarity-com-classification-run-manifest-schema.json",
  "title": "ClassificationRunManifest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onclarity-com-classifications-admin-api-openapi.yml#/components/schemas/ClassificationRunManifest",
  "properties": {
    "run_id": {
      "type": "integer",
      "title": "Run Id"
    },
    "project_id": {
      "type": "integer",
      "title": "Project Id"
    },
    "mode": {
      "type": "string",
      "title": "Mode"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "purpose": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Purpose"
    },
    "snapshot_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Snapshot At"
    },
    "population": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Population"
    },
    "selected": {
      "type": "integer",
      "title": "Selected",
      "default": 0
    },
    "succeeded": {
      "type": "integer",
      "title": "Succeeded",
      "default": 0
    },
    "failed": {
      "type": "integer",
      "title": "Failed",
      "default": 0
    },
    "sample_size": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sample Size"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    },
    "tasks": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Tasks",
      "default": []
    },
    "input_fields": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Input Fields",
      "default": []
    },
    "label_counts": {
      "additionalProperties": {
        "additionalProperties": {
          "type": "integer"
        },
        "type": "object"
      },
      "type": "object",
      "title": "Label Counts",
      "default": {}
    },
    "usage": {
      "additionalProperties": true,
      "type": "object",
      "title": "Usage",
      "default": {}
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    }
  },
  "type": "object",
  "required": [
    "run_id",
    "project_id",
    "mode",
    "status"
  ]
}