From 118f77d946fbc0237f868b254500e6aed8b9a08e Mon Sep 17 00:00:00 2001 From: Brandon Mitchell Date: Wed, 5 Jul 2023 17:01:25 -0400 Subject: [PATCH] MediaType is required in the descriptor (#439) Signed-off-by: Brandon Mitchell --- conformance/image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conformance/image.go b/conformance/image.go index 4be2105e..0c602fda 100644 --- a/conformance/image.go +++ b/conformance/image.go @@ -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"` @@ -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