Skip to content

Commit

Permalink
specs-go/v1/descriptor: Drop 'omitempty' from mediaType
Browse files Browse the repository at this point in the history
This is a required property, so 'omitempty' serves no purpose.

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking committed Feb 3, 2017
1 parent 5fccf47 commit d9ae12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs-go/v1/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import digest "github.com/opencontainers/go-digest"
// This structure provides `application/vnd.oci.descriptor.v1+json` mediatype 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 Down

0 comments on commit d9ae12f

Please sign in to comment.