{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-pipelines/json-schema/microsoft-azure-pipelines-build-artifact-schema.json",
  "title": "BuildArtifact",
  "description": "An artifact published by a build",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-pipelines-build-artifacts-api-openapi.yml#/components/schemas/BuildArtifact",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Artifact ID"
    },
    "name": {
      "type": "string",
      "description": "Name of the artifact"
    },
    "resource": {
      "type": "object",
      "description": "Artifact resource details",
      "properties": {
        "type": {
          "type": "string",
          "description": "Artifact resource type"
        },
        "data": {
          "type": "string",
          "description": "Container path or resource data"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Download URL for the artifact"
        },
        "downloadUrl": {
          "type": "string",
          "format": "uri",
          "description": "Direct download URL"
        },
        "properties": {
          "type": "object",
          "description": "Additional artifact properties",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  }
}