switch field type to string to avoid unmarshal errors#8919
Conversation
|
Azure Pipelines successfully started running 1 pipeline(s). |
azure-sdk-for-go - Release
|
azure-sdk-for-js - Release
|
azure-cli-extensions - Release
No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured
|
azure-sdk-for-python - Release
|
azure-sdk-for-net - Release
|
azure-sdk-for-java - Release
|
|
Can one of the admins verify this patch? |
| "type": "object", | ||
| "properties": { | ||
| "balance-similar-node-groups": { | ||
| "type": "boolean" |
There was a problem hiding this comment.
boolean [](start = 23, length = 7)
I discussed this over IM and while this appears to be a breaking change, this property never worked right in the service. As a result, I'm considering this more of a swagger bug fix.
From past API reviews, I recall this was basically a property bag of string properties, so coercing the bool into a string is fine here.
|
@NullMDR Please check the above comment about the breaking change and force merge the PR. |
|
@akning-ms Please help to merge this PR with breaking change approved |
|
@marwanad @jluk I don't understand why this is merged and not handled in the backend. The solution is now customer-facing and non-consistent with the other boolean options in the api specs. Other than that are the other fields of the autoScaleProfile are not typed (duration, int32), but all implemented as strings. Seems like there is some room for improvement for the next release! |
|
@aristosvo I agree and apologize for the inconvenience. In hindsight, it would've been better to handle on the backend. To answer your question about typing, we can't enforce Go's FYI, you should be able to use v42.0.0 for the SDK which contains the fix to unblock your PR. |
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist:
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on API review process.