diff --git a/tools/importer-rest-api-specs/components/parser/dataworkarounds/workaround_botservice_27351.go b/tools/importer-rest-api-specs/components/parser/dataworkarounds/workaround_botservice_27351.go index 90130cce912..788e2a5da84 100644 --- a/tools/importer-rest-api-specs/components/parser/dataworkarounds/workaround_botservice_27351.go +++ b/tools/importer-rest-api-specs/components/parser/dataworkarounds/workaround_botservice_27351.go @@ -5,6 +5,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/pandora/tools/importer-rest-api-specs/models" + "github.com/hashicorp/pandora/tools/sdk/resourcemanager" ) var _ workaround = workaroundBotService27351{} @@ -66,6 +67,14 @@ func (workaroundBotService27351) Process(input models.AzureApiDefinition) (*mode resource.Operations[operationName] = operation } + // ensure the Constant `EmailChannelAuthMethod` is updated to be an Integer rather than a Float + constant, ok := resource.Constants["EmailChannelAuthMethod"] + if !ok { + return nil, fmt.Errorf("expected a Constant named `EmailChannelAuthMethod` but didn't get one") + } + constant.Type = resourcemanager.IntegerConstant + resource.Constants["EmailChannelAuthMethod"] = constant + output.Resources["Channel"] = resource return &output, nil