Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
parameter.Required has now omitempty, so it is only serialized as true.
Browse files Browse the repository at this point in the history
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
  • Loading branch information
silvin-lubecki committed Mar 22, 2019
1 parent a58fa59 commit bfc9302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bundle/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit bfc9302

Please sign in to comment.