{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-artifact-model-pipeline-schema.json",
  "title": "ArtifactModelPipeline",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-artifactsigning-api-openapi.yml#/components/schemas/ArtifactModelPipeline",
  "x-stoplight": {
    "id": "61ctnoe7t4ss3"
  },
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "x-stoplight": {
        "id": "yefth9vlf9svq"
      }
    },
    "type": {
      "type": "string",
      "x-stoplight": {
        "id": "tv59jsryuwpbn"
      },
      "enum": [
        "image",
        "repository"
      ]
    },
    "name": {
      "type": "string",
      "x-stoplight": {
        "id": "1pqx5aj5zkzlf"
      }
    },
    "registry_url": {
      "type": "string",
      "x-stoplight": {
        "id": "2d0pchss1tcw3"
      }
    },
    "variant": {
      "$ref": "#/$defs/ArtifactVariant"
    },
    "tag": {
      "type": "string",
      "x-stoplight": {
        "id": "69micl0vn4rn8"
      }
    },
    "digest": {
      "type": "string",
      "x-stoplight": {
        "id": "6z1z7v5v1zv5z"
      }
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true,
      "x-stoplight": {
        "id": "bcmiu856m2sf8"
      }
    },
    "source_id": {
      "type": "string",
      "x-stoplight": {
        "id": "fstrqsl3noow2"
      }
    }
  },
  "$defs": {
    "ArtifactVariant": {
      "title": "ArtifactVariant",
      "x-stoplight": {
        "id": "uyb3jwhgs9wjh"
      },
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "x-stoplight": {
            "id": "2r8lmxejmwqbf"
          },
          "enum": [
            "tag",
            "branch",
            "gitTag",
            "commit"
          ],
          "description": "type of the variant of the artifact."
        },
        "value": {
          "type": "string",
          "x-stoplight": {
            "id": "hd1p3s7bugn88"
          },
          "description": "Value of the variant of the artifact."
        }
      }
    }
  }
}