From 774b8b170a0bc881d958385b8975c20a82c24327 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:47:04 +0200 Subject: [PATCH] add `omitempty` flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 98e80dea5f..c2df294814 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -1121,7 +1121,7 @@ type AzureSEVSNP struct { AMDRootKey Certificate `json:"amdRootKey" yaml:"amdRootKey"` // description: | // AMD Signing Key certificate used to verify the SEV-SNP VCEK / VLEK certificate. - AMDSigningKey Certificate `json:"amdSigningKey" yaml:"amdSigningKey" validate:"len=0"` + AMDSigningKey Certificate `json:"amdSigningKey,omitempty" yaml:"amdSigningKey,omitempty" validate:"len=0"` } // setWantLatestToFalse sets the WantLatest field to false for all versions in order to unmarshal the numerical versions instead of the string "latest".