Skip to content

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

Merged
HugoMario merged 1 commit intomasterfrom
codegen-issue-5950
Jun 30, 2020
Merged

added option to throw error instead return null for unknown enum values#713
HugoMario merged 1 commit intomasterfrom
codegen-issue-5950

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