From bfc9302e95cac4d5cbe8d8d98b62cfe1c7dcec42 Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Thu, 21 Mar 2019 14:36:22 +0100 Subject: [PATCH] parameter.Required has now omitempty, so it is only serialized as true. Signed-off-by: Silvin Lubecki --- pkg/bundle/parameters.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bundle/parameters.go b/pkg/bundle/parameters.go index c41a07ce..4b85dcf5 100644 --- a/pkg/bundle/parameters.go +++ b/pkg/bundle/parameters.go @@ -12,7 +12,7 @@ type ParameterDefinition struct { DataType string `json:"type" mapstructure:"type"` DefaultValue interface{} `json:"defaultValue,omitempty" mapstructure:"defaultValue"` AllowedValues []interface{} `json:"allowedValues,omitempty" mapstructure:"allowedValues"` - Required bool `json:"required" mapstructure:"required"` + Required bool `json:"required,omitempty" mapstructure:"required"` MinValue *int `json:"minValue,omitempty" mapstructure:"minValue"` MaxValue *int `json:"maxValue,omitempty" mapstructure:"maxValue"` MinLength *int `json:"minLength,omitempty" mapstructure:"minLength"`