{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-pipeline-run-schema.json",
  "title": "PipelineRun",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-runs-api-openapi.yml#/components/schemas/PipelineRun",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "unknown",
        "inProgress",
        "canceling",
        "completed"
      ]
    },
    "result": {
      "type": "string",
      "enum": [
        "unknown",
        "succeeded",
        "failed",
        "canceled"
      ]
    },
    "createdDate": {
      "type": "string",
      "format": "date-time"
    },
    "finishedDate": {
      "type": "string",
      "format": "date-time"
    },
    "pipeline": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "resources": {
      "type": "object",
      "properties": {
        "repositories": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "repository": {
                "type": "object"
              },
              "refName": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "variables": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "isSecret": {
            "type": "boolean"
          }
        }
      }
    },
    "url": {
      "type": "string"
    }
  }
}