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

added option to throw error instead return null for unknown enum values #713

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

HugoMario
Copy link
Contributor

applied changes from swagger-codegen#10356

@HugoMario
Copy link
Contributor Author

please build

@HugoMario HugoMario merged commit c6b8eac into master Jun 30, 2020
@HugoMario HugoMario deleted the codegen-issue-5950 branch June 30, 2020 17:51
@cdprete
Copy link

cdprete commented Apr 26, 2021

Hi @HugoMario
I've tried specifying the errorOnUnknownEnum as configOption as well as configuration option in the swagger-codegen-maven-plugin but somehow it's not picked up (enums are still generated with a fromValue that returns null on a missing match).

How should this be applied? I'm targeting version 2.4.19 of the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants