[BUG] parameters_to_url_query
returns booleans with upper letter
#16941
Labels
parameters_to_url_query
returns booleans with upper letter
#16941
Bug Report Checklist
Description
The
parameters_to_url_query
function incorrectly producesTrue
andFalse
for boolean values. This piece of code in the api_client template is responsible:openapi-generator/modules/openapi-generator/src/main/resources/python/api_client.mustache
Lines 484 to 487 in 08d5183
In python
isinstance(True, int) == True
:)openapi-generator version
v7.0.1
OpenAPI declaration file content or url
N/A
Generation Details
N/A
Steps to reproduce
N/A
Related issues/PRs
Suggest a fix
Swap the order of the checks to first check for booleans:
The text was updated successfully, but these errors were encountered: