-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Java Jersey] Update ApiClient.mustache Jersey doesn't allow entities in method DELETE #19530
Conversation
Jersey doesn't allow request entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
Jersey doesn't allow entities in method DELETE
@bbdouglas @sreeshas @jfiala @lukoyanov @cbornet @jeff9finger @karismann @Zomzog @lwlee2608 @martin-mfg |
@eric-rolli thanks for the PR If I remember correctly, some users need send the payload in DELETE request: #13457 Given that your use cases do not require sending payload in DELETE request, what about leaving the code as it's? |
@wing328
But the current openapi generated code always produces a non-null Entity object, even if the body in null. The result is that DELETE methods are not usable with the code generated for the jersey library. Would the following modification be OK? |
I think we can give it a try |
@wing328 |
thanks. let's give it a try please test it later after snapshot version published (or test it locally) |
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master
(upcoming 7.6.0 minor release - breaking changes with fallbacks),8.0.x
(breaking changes without fallbacks)