From 37af3d5c4fb043280a0f723df5c614d16be6bba4 Mon Sep 17 00:00:00 2001 From: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> Date: Mon, 1 May 2023 14:34:12 +0200 Subject: [PATCH] Add omitempty tag to bundle git details (#372) ## Changes Add omit empty tag to git details. Otherwise this field becomes a required field in the config json schema ## Tests Tested by regenerating the json schema and checking that the git field is now optional --- bundle/config/bundle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/config/bundle.go b/bundle/config/bundle.go index 36994076..ba173f10 100644 --- a/bundle/config/bundle.go +++ b/bundle/config/bundle.go @@ -27,5 +27,5 @@ type Bundle struct { // Contains Git information like current commit, current branch and // origin url. Automatically loaded by reading .git directory if not specified - Git Git `json:"git"` + Git Git `json:"git,omitempty"` }