You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've refactored our code generation file and I'd love to have your review on it. I've linked the PR with this issue.
The problem with new generator is that it converts enums like these into Enum0, Enum1, ... and so on.
Once suggested way to fix the enum issue is that
Either they should be labeled as x-ms-enum directly in the swagger
Or We can do it in a transform
There are lots of such constants (~30) and writing transforms for every one of them will be problematic.
Can we fix that?
The change in behavior is by design and comes from the autorest modeler itself (i.e. not the Go code generator) so we can't really fix it. Ideally the swagger is fixed as the change affects all languages.
That said, there is a switch for M4 to enable the old, broken, behavior. In the autorest.md file, I think you'd add it like this.
azblob
is missing an autorest.md file for easy rebuilds. There isswagger/README.md
however it's incomplete.In addition, this is using an old version of the code generator.
The text was updated successfully, but these errors were encountered: