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.
This commit is contained in:
shreyas-goenka 2023-11-14 17:28:32 +01:00 committed by GitHub
parent 0ab125c109
commit 0f58f6c875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ type Bundle struct {
} }
type Workspace struct { type Workspace struct {
FilesPath string `json:"file_path,omitempty"` FilesPath string `json:"file_path"`
} }
type Job struct { type Job struct {
@ -19,7 +19,7 @@ type Job struct {
// Relative path from the bundle root to the configuration file that holds // Relative path from the bundle root to the configuration file that holds
// the definition of this resource. // the definition of this resource.
RelativePath string `json:"relative_path,omitempty"` RelativePath string `json:"relative_path"`
} }
type Resources struct { type Resources struct {