this PR allow support to boolean values in query parameters. I change the petstore api example to generate a test case
The commits are pretty self explainatory, i added a function alongside parseInt32Parameter, and update the template in case of boolean value.
Cherrypick #7724
Credits: @Gmtstephane
Boolean query parameter tests passed via https://app.circleci.com/pipelines/github/OpenAPITools/openapi-generator/10093/workflows/7241f115-ac1f-4b3c-b1be-920d5ac6ab7f/jobs/23706/parallel-runs/2?filterBy=ALL (node 0,1)
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
,5.1.x
,6.0.x
-
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
cc @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01)