serialization: remove extra "hierarchy" from mediatypes#212
Merged
stevvooe merged 1 commit intoopencontainers:masterfrom Sep 1, 2016
Merged
Conversation
4 tasks
| "layers": [ | ||
| { | ||
| "mediaType": "application/vnd.oci.image.serialization.rootfs.tar.gzip", | ||
| "mediaType": "application/vnd.oci.image.layer.tar+gzip", |
Contributor
There was a problem hiding this comment.
It looks like the +{suffix} format is from RFC 6839. That doesn't have any examples of nested formats, but it doesn't specify a formal syntax for suffixes either. Since the layer idea doesn't seem particularly tied to tar or gzip, I'd rather use application/vnd.oci.image.layer+tar+gzip to make it easy to also support +zip or +tar+xz, etc.
Member
|
OHMAN GPG SIGNED COMMIT |
Member
|
While i'm not terribly opposed, I'm not sure what harm or confusion having the name stay is? |
Contributor
Author
|
@vbatts I'd like to see cruft remove, if we can. It would be great to get an LGTM here |
Contributor
432c134 to
dd8eaff
Compare
Contributor
Author
The fact that we are serializing is implied. This PR removes the extra bits in the media type that only serve to confuse and waste bytes. The new media types better reflect the reality for the usage of each type and how they relate. This must be followed up by a split of the serialization document, but this change _should_ be applied first. This change is backwards incompatible with previous versions of the OCI specification. Since we are before 1.0, this is acceptable. Signed-off-by: Stephen J Day <stephen.day@docker.com>
dd8eaff to
5861fdb
Compare
Member
1 similar comment
Contributor
This was referenced Sep 1, 2016
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fact that we are serializing is implied. This PR removes the extra
bits in the media type that only serve to confuse and waste bytes. The
new media types better reflect the reality for the usage of each type
and how they relate.
This must be followed up by a split of the serialization document, but
this change should be applied first.
This change is backwards incompatible with previous versions of the OCI
specification. Since we are before 1.0, this is acceptable.
Signed-off-by: Stephen J Day stephen.day@docker.com
Related to #206.