@@ -142,22 +142,25 @@ func parameterDataSource() *schema.Resource {
142142 // 'parameter.FormType' value to the new value. This is to handle default cases,
143143 // since the default logic is more advanced than the sdk provider schema
144144 // supports.
145- _ , newFT , err := ValidateFormType (parameter .Type , len (parameter .Option ), parameter .FormType )
146- if err == nil {
147- // If there is an error, parameter.Valid will catch it.
148- parameter .FormType = newFT
149-
150- // Set the form_type back in case the value was changed.
151- // Eg via a default. If a user does not specify, a default value
152- // is used and saved.
153- rd .Set ("form_type" , parameter .FormType )
154- }
145+ // _, newFT, err := ValidateFormType(parameter.Type, len(parameter.Option), parameter.FormType)
146+ // if err == nil {
147+ // // If there is an error, parameter.Valid will catch it.
148+ // parameter.FormType = newFT
149+ //
150+ // // Set the form_type back in case the value was changed.
151+ // // Eg via a default. If a user does not specify, a default value
152+ // // is used and saved.
153+ // rd.Set("form_type", parameter.FormType)
154+ // }
155155
156156 diags := parameter .Valid (value )
157157 if diags .HasError () {
158158 return diags
159159 }
160160
161+ // Set the form_type as it could have changed in the validation.
162+ rd .Set ("form_type" , parameter .FormType )
163+
161164 return nil
162165 },
163166 Schema : map [string ]* schema.Schema {
@@ -396,6 +399,11 @@ func valueIsType(typ OptionType, value string) error {
396399 return nil
397400}
398401
402+ func (v * Parameter ) RelaxedValidation (value string ) diag.Diagnostics {
403+
404+ return nil
405+ }
406+
399407func (v * Parameter ) Valid (value string ) diag.Diagnostics {
400408 var err error
401409 var optionType OptionType
0 commit comments