Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

media types and descriptors, explain more deeply #493

Closed
philips opened this issue Dec 14, 2016 · 8 comments
Closed

media types and descriptors, explain more deeply #493

philips opened this issue Dec 14, 2016 · 8 comments
Milestone

Comments

@philips
Copy link
Contributor

philips commented Dec 14, 2016

During last weeks call we discussed how the basic JSON objects in OCI shouldn't embed their own media types because they are not designed to be discovered or detected. Instead the media type should be declared explicitly in a descriptor and the contents verified via digest before interpretation.

This is a safety mechanism in the system so that people follow a strict flow of logic when interpreting things off the wire. We should make this thinking explicit in the overview of the spec.

cc @stevvooe

@wking
Copy link
Contributor

wking commented Dec 14, 2016 via email

@stevvooe
Copy link
Contributor

@philips Was there more we needed here?

@stevvooe stevvooe added this to the v1.0.0 milestone Jan 25, 2017
@vbatts
Copy link
Member

vbatts commented Jan 31, 2017

@stevvooe are we going to strip/make-OPTIONAL mediaType on everything except for descriptor objects?

@stevvooe
Copy link
Contributor

@stevvooe are we going to strip/make-OPTIONAL mediaType on everything except for descriptor objects?

This is the plan. Most are reserved fields.

Did you we need implementation direction for descriptor usage here? I am not sure what is actionable on this issue.

@vbatts
Copy link
Member

vbatts commented Jan 31, 2017 via email

@philips
Copy link
Contributor Author

philips commented Feb 1, 2017

@stevvooe I think what needs to happen is an entry in the descriptor spec about how this is the only place mediaType should appear and removal of mediaType from other objects as necessary.

@wking
Copy link
Contributor

wking commented Feb 1, 2017 via email

@stevvooe stevvooe modified the milestones: v1.0.0-rc6, v1.0.0 Mar 14, 2017
@stevvooe
Copy link
Contributor

@wking Yes, that should cover it. Closing this.

@philips If you disagree, feel free to re-open and I'll tackle this directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants