-
Notifications
You must be signed in to change notification settings - Fork 877
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 tool to handle major version upgrade of release #18188
Comments
We don't need to do this for the source code, just append it to the module's identity in |
Note, It should be the uncommon case that we do major version updates. If you are expecting this to be the common case we should discuss where and why to see how we can fix the generated code to better handle those cases. cc: @JeffreyRichter |
The common case is bugs in the swagger where types are just incorrectly defined (should have been |
Among 13 preview we need to release, there are 7 have breaking changes. I went through all the changelogs and seems all from swagger breaking (e.g., string to enum, type change, remove operation, param name change). I've already hold the v2 beta release for more careful review. |
A parameter name change shouldn't be considered breaking. Looks like the tool will need to be updated to handle this. |
@jhendrixMSFT, among these six v2 version PRs breakings (18227-18232), there is a breaking: string change to modelAsString enum. For other SDK, it will not be a breaking. But it seems if we treat it as enum, the breaking is not avoidable in Go. What do you think? |
When you have a single value enum with |
I mean change from type string to type enum with |
I took a look at the swagger PR, and it looks to me that the cross-version breaking change didn't flag this. Is this a bug? For a single value enum, changing from CC @mikekistler |
Close this task as the tool has already updated. The breaking change issues are discussed in the mail thread. |
Apply go package rule for major version. Need to use v2/v3/... sub-path for the major version upgrade.
The text was updated successfully, but these errors were encountered: