{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clay953f/json-schema/clay953f-run-results-complete-schema.json",
  "title": "RunResultsComplete",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clay953f-routines-api-openapi.yml#/components/schemas/RunResultsComplete",
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "type": "string"
    },
    "data": {
      "items": {
        "$ref": "#/$defs/RunResultItem"
      },
      "type": "array"
    },
    "finished": {
      "type": "number"
    },
    "routine_run_id": {
      "type": "string"
    },
    "status": {
      "const": "complete",
      "type": "string"
    },
    "total": {
      "type": "number"
    }
  },
  "required": [
    "routine_run_id",
    "total",
    "finished",
    "status",
    "data"
  ],
  "type": "object",
  "$defs": {
    "RunResultItem": {
      "additionalProperties": false,
      "properties": {
        "error": {
          "additionalProperties": false,
          "properties": {
            "message": {
              "type": "string"
            }
          },
          "required": [
            "message"
          ],
          "type": "object"
        },
        "id": {
          "type": "string"
        },
        "result": {
          "additionalProperties": {},
          "type": "object"
        },
        "status": {
          "enum": [
            "complete",
            "failed"
          ],
          "type": "string"
        }
      },
      "required": [
        "id",
        "status"
      ],
      "type": "object"
    }
  }
}