Open wojciechkl opened 1 week ago
Validation code here https://github.com/OpenAPITools/openapi-generator/blob/cf303d4e034ce9d8eb194fb4e37a1f3409814cf9/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/ApiClient.mustache#L1096 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.
All
Remove this validation and leave it for http library to decide if method can have request body.
can you please file a PR with the suggested fix?
Bug Report Checklist
Description
Validation code here https://github.com/OpenAPITools/openapi-generator/blob/cf303d4e034ce9d8eb194fb4e37a1f3409814cf9/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/ApiClient.mustache#L1096 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.