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

[BUG][spring] report fix 11886 from java to spring generator - function fromValue for enum model have wrong end if enumUnknownDefaultCase=true #13241

Closed
christophejan opened this issue Aug 21, 2022 · 4 comments · Fixed by #18914

Comments

@christophejan
Copy link

#11886 has fixed function fromValue for enum mode if enumUnknownDefaultCase=true on java generator.

Could you please report this fix on spring generator (enumClass.mustache and enumOuterClass.mustache).

spring generator has enumUnknownDefaultCase option like java generator (see spring generator doc) and I don't think there is any reason to get an enum behavior different from java generator.

@boroczkigabor
Copy link

What's up with this?

@s-jepsen
Copy link
Contributor

s-jepsen commented Jun 9, 2023

What's status on this?

@michalgazda
Copy link

michalgazda commented Oct 10, 2023

Any news DeaneOC? Thank you in advance.

@michalgazda
Copy link

Also may want to consider taking a look on this topic in openapi specification, where defaulting enum value is proposed as standard extension: OAI/OpenAPI-Specification#1552

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment