{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-container-registry/json-schema/azure-container-registry-manifest-wrapper-schema.json",
  "title": "ManifestWrapper",
  "description": "Returns the requested manifest file",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-container-registry-manifests-api-openapi.yml#/components/schemas/ManifestWrapper",
  "type": "object",
  "properties": {
    "mediaType": {
      "type": "string",
      "description": "Media type for this Manifest"
    },
    "manifests": {
      "type": "array",
      "description": "(ManifestList, OCIIndex) List of V2 image layer information",
      "items": {
        "$ref": "#/$defs/ManifestListAttributes"
      }
    },
    "config": {
      "$ref": "#/$defs/Descriptor",
      "description": "(V2, OCI) Image config descriptor"
    },
    "layers": {
      "type": "array",
      "description": "(V2, OCI) List of V2 image layer information",
      "items": {
        "$ref": "#/$defs/Descriptor"
      }
    },
    "annotations": {
      "$ref": "#/$defs/Annotations",
      "description": "(OCI, OCIIndex) Additional metadata"
    },
    "architecture": {
      "type": "string",
      "description": "(V1) CPU architecture"
    },
    "name": {
      "type": "string",
      "description": "(V1) Image name"
    },
    "tag": {
      "type": "string",
      "description": "(V1) Image tag"
    },
    "fsLayers": {
      "type": "array",
      "description": "(V1) List of layer information",
      "items": {
        "$ref": "#/$defs/FsLayer"
      }
    },
    "history": {
      "type": "array",
      "description": "(V1) Image history",
      "items": {
        "$ref": "#/$defs/History"
      }
    },
    "signatures": {
      "type": "array",
      "description": "(V1) Image signature",
      "items": {
        "$ref": "#/$defs/ImageSignature"
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/Manifest"
    }
  ],
  "$defs": {
    "Annotations": {
      "type": "object",
      "description": "Additional information provided through arbitrary metadata.",
      "properties": {
        "org.opencontainers.image.created": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time on which the image was built (string, date-time as defined by\nhttps://tools.ietf.org/html/rfc3339#section-5.6)",
          "x-ms-client-name": "created"
        },
        "org.opencontainers.image.authors": {
          "type": "string",
          "description": "Contact details of the people or organization responsible for the image.",
          "x-ms-client-name": "authors"
        },
        "org.opencontainers.image.url": {
          "type": "string",
          "description": "URL to find more information on the image.",
          "x-ms-client-name": "url"
        },
        "org.opencontainers.image.documentation": {
          "type": "string",
          "description": "URL to get documentation on the image.",
          "x-ms-client-name": "documentation"
        },
        "org.opencontainers.image.source": {
          "type": "string",
          "description": "URL to get source code for building the image.",
          "x-ms-client-name": "source"
        },
        "org.opencontainers.image.version": {
          "type": "string",
          "description": "Version of the packaged software. The version MAY match a label or tag in the\nsource code repository, may also be Semantic versioning-compatible",
          "x-ms-client-name": "version"
        },
        "org.opencontainers.image.revision": {
          "type": "string",
          "description": "Source control revision identifier for the packaged software.",
          "x-ms-client-name": "revision"
        },
        "org.opencontainers.image.vendor": {
          "type": "string",
          "description": "Name of the distributing entity, organization or individual.",
          "x-ms-client-name": "vendor"
        },
        "org.opencontainers.image.licenses": {
          "type": "string",
          "description": "License(s) under which contained software is distributed as an SPDX License\nExpression.",
          "x-ms-client-name": "licenses"
        },
        "org.opencontainers.image.ref.name": {
          "type": "string",
          "description": "Name of the reference for a target.",
          "x-ms-client-name": "name"
        },
        "org.opencontainers.image.title": {
          "type": "string",
          "description": "Human-readable title of the image",
          "x-ms-client-name": "title"
        },
        "org.opencontainers.image.description": {
          "type": "string",
          "description": "Human-readable description of the software packaged in the image",
          "x-ms-client-name": "description"
        }
      },
      "additionalProperties": {
        "additionalProperties": {},
        "type": "object"
      }
    },
    "Descriptor": {
      "type": "object",
      "description": "Docker V2 image layer descriptor including config and layers",
      "properties": {
        "mediaType": {
          "type": "string",
          "description": "Layer media type"
        },
        "size": {
          "type": "integer",
          "format": "int64",
          "description": "Layer size"
        },
        "digest": {
          "type": "string",
          "description": "Layer digest"
        },
        "urls": {
          "type": "array",
          "description": "Specifies a list of URIs from which this object may be downloaded.",
          "items": {
            "type": "string"
          }
        },
        "annotations": {
          "$ref": "#/$defs/Annotations",
          "description": "Additional information provided through arbitrary metadata."
        }
      }
    },
    "FsLayer": {
      "type": "object",
      "description": "Image layer information",
      "properties": {
        "blobSum": {
          "type": "string",
          "description": "SHA of an image layer"
        }
      }
    },
    "History": {
      "type": "object",
      "description": "A list of unstructured historical data for v1 compatibility",
      "properties": {
        "v1Compatibility": {
          "type": "string",
          "description": "The raw v1 compatibility information"
        }
      }
    },
    "ImageSignature": {
      "type": "object",
      "description": "Signature of a signed manifest",
      "properties": {
        "header": {
          "$ref": "#/$defs/JWK",
          "description": "A JSON web signature"
        },
        "signature": {
          "type": "string",
          "description": "A signature for the image manifest, signed by a libtrust private key"
        },
        "protected": {
          "type": "string",
          "description": "The signed protected header"
        }
      }
    },
    "JWK": {
      "type": "object",
      "description": "A JSON web signature",
      "properties": {
        "jwk": {
          "$ref": "#/$defs/JWKHeader",
          "description": "JSON web key parameter"
        },
        "alg": {
          "type": "string",
          "description": "The algorithm used to sign or encrypt the JWT"
        }
      }
    },
    "JWKHeader": {
      "type": "object",
      "description": "JSON web key parameter",
      "properties": {
        "crv": {
          "type": "string",
          "description": "crv value"
        },
        "kid": {
          "type": "string",
          "description": "kid value"
        },
        "kty": {
          "type": "string",
          "description": "kty value"
        },
        "x": {
          "type": "string",
          "description": "x value"
        },
        "y": {
          "type": "string",
          "description": "y value"
        }
      }
    },
    "Manifest": {
      "type": "object",
      "description": "Returns the requested manifest file",
      "properties": {
        "schemaVersion": {
          "type": "integer",
          "format": "int32",
          "description": "Schema version"
        }
      }
    },
    "ManifestListAttributes": {
      "type": "object",
      "description": "Attributes of a manifest in a manifest list.",
      "properties": {
        "mediaType": {
          "type": "string",
          "description": "The MIME type of the referenced object. This will generally be\napplication/vnd.docker.image.manifest.v2+json, but it could also be\napplication/vnd.docker.image.manifest.v1+json"
        },
        "size": {
          "type": "integer",
          "format": "int64",
          "description": "The size in bytes of the object"
        },
        "digest": {
          "type": "string",
          "description": "The digest of the content, as defined by the Registry V2 HTTP API Specification"
        },
        "platform": {
          "$ref": "#/$defs/Platform",
          "description": "The platform object describes the platform which the image in the manifest runs\non. A full list of valid operating system and architecture values are listed in\nthe Go language documentation for $GOOS and $GOARCH"
        }
      }
    },
    "Platform": {
      "type": "object",
      "description": "The platform object describes the platform which the image in the manifest runs\non. A full list of valid operating system and architecture values are listed in\nthe Go language documentation for $GOOS and $GOARCH",
      "properties": {
        "architecture": {
          "type": "string",
          "description": "Specifies the CPU architecture, for example amd64 or ppc64le."
        },
        "os": {
          "type": "string",
          "description": "The os field specifies the operating system, for example linux or windows."
        },
        "os.version": {
          "type": "string",
          "description": "The optional os.version field specifies the operating system version, for\nexample 10.0.10586.",
          "x-ms-client-name": "osVersion"
        },
        "os.features": {
          "type": "array",
          "description": "The optional os.features field specifies an array of strings, each listing a\nrequired OS feature (for example on Windows win32k",
          "items": {
            "type": "string"
          },
          "x-ms-client-name": "osFeatures"
        },
        "variant": {
          "type": "string",
          "description": "The optional variant field specifies a variant of the CPU, for example armv6l\nto specify a particular CPU variant of the ARM CPU."
        },
        "features": {
          "type": "array",
          "description": "The optional features field specifies an array of strings, each listing a\nrequired CPU feature (for example sse4 or aes",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}