Skip to content

Commit

Permalink
MediaType is required in the descriptor (#439)
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Mitchell <git@bmitch.net>
  • Loading branch information
sudo-bmitch committed Jul 5, 2023
1 parent 361eaa3 commit 118f77d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conformance/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type manifest struct {
// when marshalled to JSON.
type descriptor struct {
// MediaType is the media type of the object this schema refers to.
MediaType string `json:"mediaType,omitempty"`
MediaType string `json:"mediaType"`

// Digest is the digest of the targeted content.
Digest digest.Digest `json:"digest"`
Expand All @@ -42,7 +42,7 @@ type descriptor struct {
Size int64 `json:"size"`

// Data specifies the data of the object described by the descriptor.
Data []byte `json:"data"`
Data []byte `json:"data,omitempty"`

// NewUnspecifiedField is not covered by image-spec.
// Registry implementations should still successfully store and serve
Expand Down

0 comments on commit 118f77d

Please sign in to comment.