-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update api version of LB to 2020-05-01 #8910
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks for this @magodo
@magodo how does Azure/azure-rest-api-specs#10131 fix this? That Swagger fix appears to be just re-ordering two fields in the Swagger, rather than doing anything else - IIRC this was an API bug where these fields were being incorrectly mapped? |
@tombuildsstuff The reason is that the service somehow can't tolerate the first properties to be read only, after swapping the order, the service can correctly decode the request. Quote from service team:
|
@magodo given the JSON spec states that the keys inside a map are can be in any order (and I can't think of a JSON Serialisation library which supports that?) - that sounds like an API bug which still needs to be resolved? Unfortunately we'd be unable to ship this until this is fixed, due to the design of/monthly churn from the Networking API's |
@tombuildsstuff Yes, you are right. So the reason why it now works seems because we do not send the other properties in the API request in Go SDK any more due to Azure/autorest.go#446. |
@magdoo unfortunately that's not something we can depend/reply on, due to the large churn within the Azure SDK - so it's possible for this to subtly break at any time, in a way that's incredibly hard to diagnose? As such I think this PR is blocked for the moment - can we open a Swagger issue and reach out to the Service Team to get this bug fixed? Closing this temporarily since this is blocked - but we can re-open this once the API's fixed. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
The LB api version is rolled back to 2020-03-01 in #8006 because of issue #7691. Now that the issue has been addressed in Azure/azure-rest-api-specs#10131 and the change has been involved in the Go SDK currently under used. So we shall upgrade the API back to 2020-05-01 so that all network resources are using the same one.