Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Default handling for discriminators with undefined mapping #12513

Eagleshield started this conversation in Ideas
Discussion options

Hi.
The OpenAPI Specification regarding discriminators does not indicate that a custom mapping for the propertyName field is necessary. Currently, leaving a discriminator without mapping results in an NPE if the DefaultCodegenConfig.java class is used. Is it not desired to have the expected default case mentioned in the documentation, the schema name, as a fallback for missing mapping?
Thanks for the consideration.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /