From ac28cac0557bcd3084714ab09f9f2356fe504923 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 27 Oct 2021 16:01:43 -0400 Subject: [PATCH 1/3] spec: clarify handling regarding Content-type header Signed-off-by: Vincent Batts --- spec.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/spec.md b/spec.md index 18046593..64c92455 100644 --- a/spec.md +++ b/spec.md @@ -142,7 +142,9 @@ The `` MUST NOT be in any other format. Throughout this document, `/manifests/` [end-7](#endpoints) + +Clients SHOULD set the `Content-Type` header to the type of the manifest being pushed. +All manifests SHOULD include a `mediaType` field declaring the type of the manifest being pushed. +If a manifest includes a `mediaType` field, clients MUST set the `Content-Type` header to the value specified by the `mediaType` field. + ``` Content-Type: application/vnd.oci.image.manifest.v1+json ``` +Manifest byte stream: ``` - +{ + "mediaType": "application/vnd.oci.image.manifest.v1+json", + ... +} ``` `` is the namespace of the repository, and the `` MUST be either a) a digest or b) a tag. From 10efb871ee08eb13678fe275e2cf89b3df86542b Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 9 Nov 2021 12:07:33 -0500 Subject: [PATCH 2/3] version: release v1.0.1 Signed-off-by: Vincent Batts --- specs-go/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs-go/version.go b/specs-go/version.go index fd353675..c787c246 100644 --- a/specs-go/version.go +++ b/specs-go/version.go @@ -22,7 +22,7 @@ const ( // VersionMinor is for functionality in a backwards-compatible manner VersionMinor = 0 // VersionPatch is for backwards-compatible bug fixes - VersionPatch = 0 + VersionPatch = 1 // VersionDev indicates development branch. Releases will be empty string. VersionDev = "" From 5d83a35a6e4e9235d301094025fd9e4064305603 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 9 Nov 2021 12:07:54 -0500 Subject: [PATCH 3/3] version: bump main back to -dev Signed-off-by: Vincent Batts --- specs-go/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs-go/version.go b/specs-go/version.go index c787c246..8da267b3 100644 --- a/specs-go/version.go +++ b/specs-go/version.go @@ -25,7 +25,7 @@ const ( VersionPatch = 1 // VersionDev indicates development branch. Releases will be empty string. - VersionDev = "" + VersionDev = "-dev" ) // Version is the specification version that the package types support.