Skip to content
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] APIClient.mustache template for apache-httplient library unnecessarily verifies if method allows request body #18979

Open
5 of 6 tasks
wojciechkl opened this issue Jun 19, 2024 · 1 comment

Comments

@wojciechkl
Copy link

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Validation code here

prevents me from sending GET request with body data.

I'm using OpenApi version 3.1.0 which explicitly allows to have request body in GET methods.

openapi-generator version

All

Suggest a fix

Remove this validation and leave it for http library to decide if method can have request body.

@wing328
Copy link
Member

wing328 commented Jun 19, 2024

can you please file a PR with the suggested fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants