Skip to content

Commit 515e298

Browse files
authored
Merge pull request #967 from sudo-bmitch/pr-artifact-type-omit
ArtifactType is optional, omit when empty
2 parents 8159c82 + 867ce74 commit 515e298

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)