-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[BUG][Java][okhttp] POST request with an empty body results in a NullPointerException #11833
Comments
I prefer the latter. May I know if you can help contribute a fix for it? |
I also prefer the latter. My first suggestion would only be a quick fix and not solve the problem per se. |
Hi there, did the problem resolved ? |
Hello, is there already a new status regarding this issue? |
This issue is resolved in 6.2.0. |
Thanks for your help @fileme ! |
Bug Report Checklist
Description
Sending a POST request with an empty body results in a NullPointerException.
This issue exists since version 5.3.1.
openapi-generator version
OpenAPI 5.4.0 and OpenAPI 5.3.1
OpenAPI declaration file content or url
see https://github.com/pg-fine/openapi-post-empty-body-bug
Generation Details
see https://github.com/pg-fine/openapi-post-empty-body-bug
Steps to reproduce
see https://github.com/pg-fine/openapi-post-empty-body-bug
Related issues/PRs
4ecceb1
"* remove default content-type in java okhttp client" is the reason for this bug
Suggest a fix
add a default content-type or allow empty request bodies with empty content-types.
The text was updated successfully, but these errors were encountered: