{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-build-artifact-schema.json",
  "title": "BuildArtifact",
  "description": "An artifact published by a build",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-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 (e.g., 'drop', 'packages')"
    },
    "resource": {
      "type": "object",
      "description": "Resource details for downloading the artifact",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of artifact storage (e.g., Container, FilePath, VersionControl)"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "URL to download the artifact"
        },
        "downloadUrl": {
          "type": "string",
          "format": "uri",
          "description": "Direct download URL"
        },
        "properties": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "source": {
      "type": "string",
      "description": "Source of the artifact"
    }
  }
}