{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/circleci/main/json-schema/circleci-workflow-job-list-schema.json",
  "title": "WorkflowJobList",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/circleci-workflow-api-openapi.yml#/components/schemas/WorkflowJobList",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkflowJob"
      },
      "description": "List of workflow jobs"
    },
    "next_page_token": {
      "type": "string",
      "description": "Token for retrieving the next page"
    }
  },
  "$defs": {
    "WorkflowJob": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The unique identifier of the job"
        },
        "name": {
          "type": "string",
          "description": "The name of the job"
        },
        "type": {
          "type": "string",
          "enum": [
            "build",
            "approval"
          ],
          "description": "The type of job"
        },
        "status": {
          "type": "string",
          "description": "The status of the job"
        },
        "job_number": {
          "type": "integer",
          "description": "The job number"
        },
        "started_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the job started"
        },
        "stopped_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the job stopped"
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "description": "IDs of jobs this job depends on"
        }
      }
    }
  }
}