-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Java] better enum naming for symbol #3519
Conversation
Looking at the changelist there may be a copy/paste error:
Also, would it be possible to do it for . (dot/period) as well? That's the case I ran into (we have an enumeration with both . (dot) and _ (underscore) and they are both being translated to _ (Java codegen). It would be really nice if underscore on its own would be translated to UNDERSCORE. Is there any guess when the new version with this fix would come out? |
@wing328 Fantastic, Thank you. |
@sebciok thanks again for reporting the issue. Please pull the latest to help confirm it addresses the issue for you as there're quite a few enum-related enhancements and bug fixes. Although we've test cases but still we our users to do a test if possible. |
I got latest, built codegen and was able to successfully generate my enumeration. Thank you, works great. I ran into an unrelated issue where generated code could not resolve JsonCreator annotation, but it could be something on my side. If we want to handle more special characters (I do not need them, but just for completeness), I found that those ones are still missing: QUESTION_MARK ? |
Which HTTP library did you use? The default one is For the remaining special characters, we'll add those later. |
I just used a default generated maven project without any changes, so it looks like I was using com.squareup.okhttp. I will try generation, on another, larger swagger definition. |
Thanks for the info. FYI. Other symbols mapped via #3546 |
For #2487