You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
If requestBody is specified as application/json type boolean, code similar to the following is generated...and request.body() can not be coerced into boolean without parse(...).get_to().
void DefaultApi::pet_post_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
try {
// Getting the body param
bool body;
try {
body = request.body();
openapi-generator version
7.10.0...but have seen similar in many versions since 4.1.0
Bug Report Checklist
Description
If requestBody is specified as application/json type boolean, code similar to the following is generated...and request.body() can not be coerced into boolean without parse(...).get_to().
openapi-generator version
7.10.0...but have seen similar in many versions since 4.1.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
java -jar Downloads/openapi-generator-cli-7.10.0.jar generate -i dog.yaml -g cpp-pistache-server -o exp
Related issues/PRs
Appears to be caused by https://github.com/OpenAPITools/openapi-generator/pull/3509/files
Suggest a fix
Generate code similar to what 4.0.2 generates:
The text was updated successfully, but these errors were encountered: