Skip to content

Commit 0dde5fc

Browse files
authored
fix(api): missing json tag to init template from workflow (#5088)
1 parent ebc811a commit 0dde5fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/exportentities/workflow_tar.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ func (w WorkflowComponents) ToRaw() (WorkflowComponentsRaw, error) {
6666
}
6767

6868
type WorkflowComponentsRaw struct {
69-
Workflow string
70-
Applications []string
71-
Pipelines []string
72-
Environments []string
69+
Workflow string `json:"workflow,omitempty"`
70+
Applications []string `json:"applications,omitempty"`
71+
Pipelines []string `json:"pipelines,omitempty"`
72+
Environments []string `json:"environments,omitempty"`
7373
}
7474

7575
// TarWorkflowComponents returns a tar containing all files for a workflow.

0 commit comments

Comments
 (0)