Open doron276 opened 1 year ago
@doron276 , the defect in the swagger cause the generation code has issues when doing unmarshal.
The model definition of RemotePrivateEndpointConnection
is incorrect in the swagger. It has additional layer of properties
. The line#4243 to line#4246 and line#4266 need to be deleted in the above swagger.
+@naveedaz @Azure/azure-app-service-control-plane can you fix the swagger in next version? I think this issue happens for other languages of SDK too.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp @AzureAppServiceCLI.
Hi @raych1 @naveedaz, Thanks for the answer. We're waiting for your fix. Please advise ASAP. Thanks
Go version 1.20.5
I'm using version:
github.com/Azure/azure-sdk-for-go/services/web/mgmt/2021-03-01/web
But it also happens in the latest version:
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v2
I'm trying to fetch Azure static web sites using
staticWebAppsClient.ListComplete(ctx)
I get the objects but they have partial data for private endpoints (theproperties
field is empty).When I try to get the data in the same call using the API I get all the data.
I tried to fetch the private endpoints separately using
staticWebAppsClient.GetPrivateEndpointConnectionListComplete(ctx)
and I succeed to fetch all the data of private endpoints.I noticed that the types are different with each call:
ListComplete
, response includes type:StaticSiteARMResource
->ResponseMessageEnvelopeRemotePrivateEndpointConnection
GetPrivateEndpointConnectionListComplete
, response includes type:RemotePrivateEndpointConnectionARMResource
.And during Unmarshall some of the data will be lost (without raising an error). For example you can try debug
ByUnmarshallingJSON
to see that the data returned from the API is correct and will be lost during the Unmarshall.Please advise and fix it. Thanks