Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Update persisted content version requirements #46

Merged
merged 3 commits into from
Sep 14, 2021

Conversation

lachie83
Copy link
Contributor

Signed-off-by: Lachlan Evenson [email protected]

@lachie83 lachie83 requested a review from a team as a code owner September 10, 2021 23:22
@@ -36,7 +36,7 @@ Both the `DRAFT` and the `RC` may include an optional number suffix to indicate

The tag `AD` should never be used in a SemVer stability marker. `AD` is synonymous with the final release.

Content persisted MUST be version specific via the use of the `"mediaType"` field to assure the specification version is not assumed. For example code implementing `oras-artifacts-spec-1.0.0.DRAFT1` must use `"mediaType": "application/vnd.cncf.oras.artifact.manifest.1.0.0-DRAFT1+json"`.
Content persisted MUST be version specific to the target version (eg oras-artifacts-spec-1.0.0) via the use of the `"mediaType"` field to assure the specification version is not assumed. For example code implementing `oras-artifacts-spec-1.0.0` must use `"mediaType": "application/vnd.cncf.oras.artifact.manifest.1.0.0+json"`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field has been removed from the manifest as per - #42 . I believe we can retitle this as

Content persisted MUST be version specific to the target version (eg oras-artifacts-spec-1.0.0). 
For example code implementing `oras-artifacts-spec-1.0.0` must use 
`Content-Type: application/vnd.cncf.oras.artifact.manifest.1.0.0+json` when uploading
the artifact manifest.

You can point to - https://github.com/opencontainers/distribution-spec/blob/162b5c95788bccddbd68e4a234e75524fc10dc68/spec.md#pushing-manifests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can leave it as is since the descriptor does have a mediaType field so it might be ok.

@SteveLasker SteveLasker merged commit eecc5d9 into oras-project:main Sep 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants