{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/snyk/main/json-schema/snyk-image-schema.json", "title": "Image", "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/Image", "additionalProperties": false, "properties": { "attributes": { "$ref": "#/$defs/ImageAttributes" }, "id": { "$ref": "#/$defs/ImageDigest" }, "relationships": { "properties": { "image_target_refs": { "properties": { "links": { "$ref": "#/$defs/SelfLink" } }, "type": "object" } }, "type": "object" }, "type": { "enum": [ "container_image" ], "type": "string" } }, "required": [ "type", "id", "attributes" ], "type": "object", "$defs": { "ImageAttributes": { "properties": { "layers": { "items": { "$ref": "#/$defs/ImageDigest" }, "minItems": 1, "type": "array" }, "names": { "items": { "$ref": "#/$defs/ImageName" }, "type": "array" }, "platform": { "$ref": "#/$defs/Platform" } }, "required": [ "platform", "layers" ], "type": "object" }, "ImageDigest": { "format": "uri", "pattern": "^sha256(:|%3A)[a-f0-9]{64}$", "type": "string" }, "ImageName": { "pattern": "^((?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))+)?(?::[0-9]+)?\\/)?[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?(?:(?:\\/[a-z0-9]+(?:(?:(?:[._]|__|[-]*)[a-z0-9]+)+)?)+)?)(?::([\\w][\\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][A-Fa-f0-9]{32,}))?$", "type": "string" }, "LinkProperty": { "oneOf": [ { "description": "A string containing the link’s URL.", "type": "string" }, { "additionalProperties": false, "properties": { "href": { "description": "A string containing the link’s URL.", "type": "string" }, "meta": { "additionalProperties": true, "description": "Free-form object that may contain non-standard information.", "type": "object" } }, "required": [ "href" ], "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" }, "SelfLink": { "additionalProperties": false, "properties": { "self": { "$ref": "#/$defs/LinkProperty" } }, "type": "object" } } }