-
Notifications
You must be signed in to change notification settings - Fork 215
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
Add a media type to the image manifest #437
Add a media type to the image manifest #437
Conversation
The media type was excluded from the empty layer manifest intentionally. Signed-off-by: Brandon Mitchell <git@bmitch.net>
@@ -14,6 +14,9 @@ type manifest struct { | |||
// SchemaVersion is the image manifest schema that this image follows | |||
SchemaVersion int `json:"schemaVersion"` | |||
|
|||
// MediaType specifies the type of this document data structure e.g. `application/vnd.oci.image.manifest.v1+json` | |||
MediaType string `json:"mediaType,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk.. trying to remember if there was a good reason for us to have our own copy of these types vs importing them from the aligning image spec release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was asking the same thing recently. We are injecting a custom field in the descriptor where we can't just extend the struct in the test (since we would need to modify the manifests that include the descriptor). If we modified the tests to only extend the manifests with custom fields, this could become an import.
The media type was excluded from the empty layer manifest intentionally. Signed-off-by: Brandon Mitchell <git@bmitch.net>
The media type was excluded from the empty layer manifest intentionally. Signed-off-by: Brandon Mitchell <git@bmitch.net>
Media type is recommended for manifests and required in descriptors.
The media type was excluded from the empty layer manifest intentionally to verify registries support clients that ignore the "SHOULD" in the image spec.
Fixes #435