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. diff --git a/specs-go/version.go b/specs-go/version.go index fd353675..8da267b3 100644 --- a/specs-go/version.go +++ b/specs-go/version.go @@ -22,10 +22,10 @@ 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 = "" + VersionDev = "-dev" ) // Version is the specification version that the package types support.