Skip to content

Commit d36ccf1

Browse files
committed
MediaType is required in the descriptor
Signed-off-by: Brandon Mitchell <[email protected]>
1 parent b5ec432 commit d36ccf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs-go/v1/descriptor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import digest "github.com/opencontainers/go-digest"
2121
// when marshalled to JSON.
2222
type Descriptor struct {
2323
// MediaType is the media type of the object this schema refers to.
24-
MediaType string `json:"mediaType,omitempty"`
24+
MediaType string `json:"mediaType"`
2525

2626
// Digest is the digest of the targeted content.
2727
Digest digest.Digest `json:"digest"`

0 commit comments

Comments
 (0)