From 0f58f6c875962042064e1b7afb39983754dbcc0f Mon Sep 17 00:00:00 2001 From: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> Date: Tue, 14 Nov 2023 17:28:32 +0100 Subject: [PATCH] Serialise empty files_path and job.relative_path in the deployment metadata (#984) ## Changes The Jobs service expects these fields to always be present in the metadata in their validation logic, which is reasonable. This PR removes the omit empty tags so these fields are always uploaded to the workspace `metadata.json` file. --- bundle/metadata/metadata.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/metadata/metadata.go b/bundle/metadata/metadata.go index 27edd5842..441f1463a 100644 --- a/bundle/metadata/metadata.go +++ b/bundle/metadata/metadata.go @@ -11,7 +11,7 @@ type Bundle struct { } type Workspace struct { - FilesPath string `json:"file_path,omitempty"` + FilesPath string `json:"file_path"` } type Job struct { @@ -19,7 +19,7 @@ type Job struct { // Relative path from the bundle root to the configuration file that holds // the definition of this resource. - RelativePath string `json:"relative_path,omitempty"` + RelativePath string `json:"relative_path"` } type Resources struct {