From 7c0b1c090d07320a9bf09788c364b8a31a30c772 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 8 Jun 2022 16:40:31 -0700 Subject: [PATCH] Update artifact manifest spec to make mediaType REQUIRED (#101) Fixes: https://github.com/oras-project/artifacts-spec/issues/100 Signed-off-by: Michael Brown --- artifact-manifest.md | 3 ++- examples/net-monitor-oci-image.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/artifact-manifest.md b/artifact-manifest.md index 86a2d73..b6d0d08 100644 --- a/artifact-manifest.md +++ b/artifact-manifest.md @@ -14,7 +14,8 @@ The `artifact.manifest` provides an optional collection of `blobs`, an optional - **`mediaType`** *string* - This field contains the `mediaType` of this document, differentiating from [image-manifest][oci-image-manifest-spec] and [image-index][oci-image-index]. The `mediaType` for this manifest type MUST be `application/vnd.cncf.oras.artifact.manifest.v1+json`, where the version WILL change to reflect newer versions. + This REQUIRED field contains the `mediaType` of this document, differentiating from [image-manifest][oci-image-manifest-spec] and [image-index][oci-image-index]. + The `mediaType` for this manifest type MUST be `application/vnd.cncf.oras.artifact.manifest.v1+json`, where the version WILL change to reflect newer versions. - **`artifactType`** *string* diff --git a/examples/net-monitor-oci-image.json b/examples/net-monitor-oci-image.json index 409d859..817e732 100644 --- a/examples/net-monitor-oci-image.json +++ b/examples/net-monitor-oci-image.json @@ -1,4 +1,5 @@ { + "mediaType": "application/vnd.oci.image.manifest.v1+json", "schemaVersion": 2, "config": { "mediaType": "application/vnd.oci.image.config.v1+json",