-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
NPE on Json sub type with no name defined #2862
Comments
Seems not to be reproducible, can you share the full failing resource/model class and the caller code, and possibly the full stack trace? |
@frantuma full stack trace:
|
Thanks, issue was indeed with enums in combination with subtypes compound models; not really sure what the example models represent, however #2878 fixes the NPE for such scenario; the outcome for the given example would be:
closing ticket, please reopen if you're still experiencing issues |
@frantuma thanks! looking forward for a release containing this fix |
@frantuma
|
During OpenAPI object creation, the jackson model resolver fails with NPE (swagger-core 2.0.2):
Fails on JsonSubType wit null/empty name, example:
The text was updated successfully, but these errors were encountered: