Skip to content
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

Special cases in enum values fails to generate accurate enum keys for Java generator #502

Closed
jonaslagoni opened this issue Nov 3, 2021 · 2 comments · Fixed by #526
Closed
Labels
bug Something isn't working good first issue Good for newcomers Java generator Anything related to the Java generator released

Comments

@jonaslagoni
Copy link
Member

Describe the bug

Thanks to @panwauu, we already have it solved in the TS generator, see #450 and fix in #497.

We need to apply the same fix we did here:

key = FormatHelpers.replaceSpecialCharacters(String(value), { exclude: [' '], separator: '_' });

to this line:

@jonaslagoni jonaslagoni added bug Something isn't working good first issue Good for newcomers Java generator Anything related to the Java generator labels Nov 3, 2021
@jonaslagoni jonaslagoni changed the title Special cases in enum values fails to generate accurate enum output for Java generator Special cases in enum values fails to generate accurate enum keys for Java generator Nov 3, 2021
quadrrem pushed a commit to quadrrem/modelina that referenced this issue Dec 13, 2021
@quadrrem
Copy link
Contributor

I gave it a shot in the PR #526 above, please let me know what you think.

@asyncapi-bot
Copy link
Contributor

🎉 This issue has been resolved in version 0.39.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers Java generator Anything related to the Java generator released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants