Skip to content

Commit 867ce74

Browse files
committed
ArtifactType is optional, omit when empty
Signed-off-by: Brandon Mitchell <[email protected]>
1 parent 8159c82 commit 867ce74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs-go/v1/artifact.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Artifact struct {
2121
MediaType string `json:"mediaType"`
2222

2323
// ArtifactType is the IANA media type of the artifact this schema refers to.
24-
ArtifactType string `json:"artifactType"`
24+
ArtifactType string `json:"artifactType,omitempty"`
2525

2626
// Blobs is a collection of blobs referenced by this manifest.
2727
Blobs []Descriptor `json:"blobs,omitempty"`

0 commit comments

Comments
 (0)