Skip to content

Commit 50ba8f4

Browse files
committed
merge pr #1091 into opencontainers/image-spec
Brandon Mitchell (1): MediaType is required in the descriptor LGTMs: tianon jonboulle cyphar Closes #1091
2 parents 1acb6c8 + d36ccf1 commit 50ba8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs-go/v1/descriptor.go

Lines changed: 1 addition & 1 deletion
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)