From 9548f7da7136f91cfe1281b4e146639b6e571fae Mon Sep 17 00:00:00 2001 From: zhouhao Date: Fri, 10 Mar 2017 11:00:03 +0800 Subject: [PATCH] index.go: add omitempty to platform Signed-off-by: zhouhao --- specs-go/v1/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs-go/v1/index.go b/specs-go/v1/index.go index 17a3859cb..c7d56ef66 100644 --- a/specs-go/v1/index.go +++ b/specs-go/v1/index.go @@ -47,7 +47,7 @@ type ManifestDescriptor struct { Descriptor // Platform describes the platform which the image in the manifest runs on. - Platform Platform `json:"platform"` + Platform Platform `json:"platform,omitempty"` } // Index references manifests for various platforms.