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

[REQ] [cpprestsdk] Serialize boolean parameters as true/false instead of 1/0, so cpp-pistache-server can interpret them. #10553

Closed
shayan-eftekhari opened this issue Oct 7, 2021 · 0 comments · Fixed by #10554

Comments

@shayan-eftekhari
Copy link
Contributor

Description

cpp-rest-sdk-client serializes boolean parameter values as integer values (i.e. 0/1) while cpp-pistache-server does not interpret integer values 0 and 1 as false and true. Therefore, I can't pass bool parameters.

openapi-generator version

openapi-generator 5.2.1

Suggest a fix/enhancement

This problem can be solved by overloading the ApiClient::parameterToString method of cpp-rest-sdk-client apiclient mustache file.

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