{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/continuous-delivery-foundation/json-schema/continuous-delivery-foundation-pipeline-runs-response-schema.json",
  "title": "PipelineRunsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/continuous-delivery-foundation-multi-pipeline-graph-api-openapi.yml#/components/schemas/PipelineRunsResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "ok"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PipelineRun"
      }
    }
  },
  "$defs": {
    "PipelineRun": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique run identifier"
        },
        "displayName": {
          "type": "string",
          "description": "Display name of the run"
        },
        "timestamp": {
          "type": "integer",
          "format": "int64",
          "description": "Run start timestamp in milliseconds since epoch"
        },
        "duration": {
          "type": "integer",
          "format": "int64",
          "description": "Run duration in milliseconds"
        },
        "changesCount": {
          "type": "integer",
          "description": "Number of changes in this run"
        },
        "result": {
          "$ref": "#/$defs/PipelineState"
        }
      }
    },
    "PipelineState": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "paused",
        "skipped",
        "not_built",
        "finished",
        "success",
        "unstable",
        "failure",
        "unknown",
        "aborted"
      ]
    }
  }
}