Skip to content

Commit a3500d5

Browse files
authored
Merge pull request #607 from q384566678/plat-omit
index.go: add omitempty to platform
2 parents fa4c9fb + 9548f7d commit a3500d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs-go/v1/index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type ManifestDescriptor struct {
4747
Descriptor
4848

4949
// Platform describes the platform which the image in the manifest runs on.
50-
Platform Platform `json:"platform"`
50+
Platform Platform `json:"platform,omitempty"`
5151
}
5252

5353
// Index references manifests for various platforms.

0 commit comments

Comments
 (0)