swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[cpprest] Bug: boolean values get converted to 0 and 1 instead of true and false

Open cipold opened this issue 7 years ago • 0 comments

Description

When using the cpprest generated client the generated python client throws exceptions when boolean information is transferred. Using swagger UI we can see the difference in packets sent: swagger UI sends true and false in form data while the generated cpprest client sends 1 and 0.

Swagger-codegen version

master / 2.4.11-SNAPSHOT

Suggest a fix/enhancement

I will submit a PR fixing this issue.

cipold avatar Dec 02 '19 12:12 cipold