From 47f4d30229f9054053a914f1de6a9a73e0b1bc14 Mon Sep 17 00:00:00 2001 From: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:10:25 +0200 Subject: [PATCH] Make top level workspace optional in JSON schema (#562) ## Tests Tested manually. `"workspace"` is no longer a required field in the generated JSON schema Co-authored-by: Pieter Noordhuis --- bundle/config/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle/config/root.go b/bundle/config/root.go index 8e832573..189b1a7f 100644 --- a/bundle/config/root.go +++ b/bundle/config/root.go @@ -36,7 +36,7 @@ type Root struct { // Workspace contains details about the workspace to connect to // and paths in the workspace tree to use for this bundle. - Workspace Workspace `json:"workspace"` + Workspace Workspace `json:"workspace,omitempty"` // Artifacts contains a description of all code artifacts in this bundle. Artifacts map[string]*Artifact `json:"artifacts,omitempty"`