Skip to content

Commit a4f4065

Browse files
authored
fix: map_structure of form_type to match argument name (#401)
* fix: map_structure of form_type to match argument name * chore: required on anonymouse struct too
1 parent 77de38e commit a4f4065

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provider/parameter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type Parameter struct {
5454
DisplayName string `mapstructure:"display_name"`
5555
Description string
5656
Type OptionType
57-
FormType ParameterFormType
57+
FormType ParameterFormType `mapstructure:"form_type"`
5858
Mutable bool
5959
Default *string
6060
Icon string
@@ -86,10 +86,10 @@ func parameterDataSource() *schema.Resource {
8686
var parameter Parameter
8787
err = mapstructure.Decode(struct {
8888
Name interface{}
89-
DisplayName interface{}
89+
DisplayName interface{} `mapstructure:"display_name"`
9090
Description interface{}
9191
Type interface{}
92-
FormType interface{}
92+
FormType interface{} `mapstructure:"form_type"`
9393
Mutable interface{}
9494
Default interface{}
9595
Icon interface{}

0 commit comments

Comments
 (0)