{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/snyk/main/json-schema/snyk-image-target-ref-schema.json",
  "title": "ImageTargetRef",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snyk-container-image-api-openapi.yml#/components/schemas/ImageTargetRef",
  "additionalProperties": false,
  "properties": {
    "attributes": {
      "$ref": "#/$defs/ImageTargetRefAttributes"
    },
    "id": {
      "format": "uuid",
      "type": "string"
    },
    "type": {
      "enum": [
        "image_target_reference"
      ],
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ImageTargetRefAttributes": {
      "properties": {
        "platform": {
          "$ref": "#/$defs/Platform"
        },
        "target_id": {
          "format": "uuid",
          "type": "string"
        },
        "target_reference": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "Platform": {
      "enum": [
        "aix/ppc64",
        "android/386",
        "android/amd64",
        "android/arm",
        "android/arm/v5",
        "android/arm/v6",
        "android/arm/v7",
        "android/arm64",
        "android/arm64/v8",
        "darwin/amd64",
        "darwin/arm",
        "darwin/arm/v5",
        "darwin/arm/v6",
        "darwin/arm/v7",
        "darwin/arm64",
        "darwin/arm64/v8",
        "dragonfly/amd64",
        "freebsd/386",
        "freebsd/amd64",
        "freebsd/arm",
        "freebsd/arm/v5",
        "freebsd/arm/v6",
        "freebsd/arm/v7",
        "illumos/amd64",
        "ios/arm64",
        "ios/arm64/v8",
        "js/wasm",
        "linux/386",
        "linux/amd64",
        "linux/arm",
        "linux/arm/v5",
        "linux/arm/v6",
        "linux/arm/v7",
        "linux/arm64",
        "linux/arm64/v8",
        "linux/loong64",
        "linux/mips",
        "linux/mipsle",
        "linux/mips64",
        "linux/mips64le",
        "linux/ppc64",
        "linux/ppc64le",
        "linux/riscv64",
        "linux/s390x",
        "linux/x86_64",
        "netbsd/386",
        "netbsd/amd64",
        "netbsd/arm",
        "netbsd/arm/v5",
        "netbsd/arm/v6",
        "netbsd/arm/v7",
        "openbsd/386",
        "openbsd/amd64",
        "openbsd/arm",
        "openbsd/arm/v5",
        "openbsd/arm/v6",
        "openbsd/arm/v7",
        "openbsd/arm64",
        "openbsd/arm64/v8",
        "plan9/386",
        "plan9/amd64",
        "plan9/arm",
        "plan9/arm/v5",
        "plan9/arm/v6",
        "plan9/arm/v7",
        "solaris/amd64",
        "windows/386",
        "windows/amd64",
        "windows/arm",
        "windows/arm/v5",
        "windows/arm/v6",
        "windows/arm/v7",
        "windows/arm64",
        "windows/arm64/v8"
      ],
      "type": "string"
    }
  }
}