-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
NPE at ModelImpl #6259
Comments
Also seeing this issue with swagger-codegen 2.2.3. |
The line at the top of your is thrown here. If you think your swagger spec is failing validation now, you can validate via command line. This is the command (installed from
If your spec passes validation, I'd recommend debugging locally. The maven plugin is just a maven options wrapper around swagger-codgen's core, which you can also access via swagger-codegen-cli. Here are the steps if you're not familiar with it (I'm assuming you have IntelliJ available if you're using the maven plugin):
For 2.2.3, swagger parser and swagger core dependencies were updated (commit). It's possible the NPE is from a type pulled in from there. I did some investigation into I hope that helps. |
Looks like it has been fixed right after v2.2.3 release. The coming v2.3.0 should be fine. |
@codegen dev, any plan to backport this fix to 2.2x branch and release with 2.2.4? |
Hi
I currently facing this stack trace
after upgrading from swagger-codegen-maven-plugin 2.2.2 to 2.2.3 where I generate java source from swagger spec
Need suggestion on how to look for abnormalities in my swagger spec file which can cause this issue ( or this can just be regression )
Thanks
Swagger-codegen version
2.2.3
The text was updated successfully, but these errors were encountered: