tools/generator-go-sdk
: unmarshaling a list of discriminated types is broken
#3639
Labels
area/discriminators
Discriminators are interface/implementations
bug
Something isn't working
tool/generator-go-sdk
Issues with the Go SDK Generator
When switching
DataShare
over to the new base layer, theListByShare
operation is broken, returningmap[string]interface{}
as the type ofSynchronizationSetting
, rather than the correctly unmarshalled object.This is accounted for/works fine when using the old base layer - as such this is scoped to the new base layer.
Working (old base layer): hashicorp/go-azure-sdk@a476e69#diff-b7ab6a17ff3638f8b2855cc7cbce18daea707f6b7b7b68f523a1767abc94e0b1L117-L126
Broken (new base layer):
As such we’ll need to update
generator-go-sdk
to conditionally unmarshal the object when a list of a discriminated reference is returned.Blocks hashicorp/terraform-provider-azurerm#24481
The text was updated successfully, but these errors were encountered: