Skip to content

Commit 42e0881

Browse files
davemooreuwsjyecusch
authored andcommitted
fix(engines): adds omitempty tag to default
Adds the `omitempty` tag to the `Default` field in the `Variable` struct. This allows for more concise YAML/JSON outputs when the default value is not explicitly set.
1 parent 391e891 commit 42e0881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engines/terraform/platform.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type PlatformSpec struct {
5656
type Variable struct {
5757
Type string `json:"type" yaml:"type"`
5858
Description string `json:"description" yaml:"description"`
59-
Default interface{} `json:"default" yaml:"default"`
59+
Default interface{} `json:"default,omitempty" yaml:"default,omitempty"`
6060
Nullable bool `json:"nullable" yaml:"nullable"`
6161
}
6262

0 commit comments

Comments
 (0)