OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
the argument parameter artifact_id=some string) is invalid -- but not quoted as a string to python, and supplied very literally. Eg. if the example read:
example: "url_encode: 0/0"
it would would render that as unquoted python.
openapi-generator version
4.2.3 (supplied via python/pip) -- I have seen this apparent bug in master
OpenAPI declaration file content or url
(I'll render a full test case if requested, I think it's apparent from the above and probably near existing fixtures)
I believe the issue is in this line of code, with a lack of quoting -- but I have not traced into how th example object is ... typed in or by mustache yet.
Description
When I supply a configuration in the style of:
and run openapi-generator,
$output/$package/test/test_a_controller.py
is generated containing python that reads:the argument parameter
artifact_id=some string)
is invalid -- but not quoted as a string to python, and supplied very literally. Eg. if the example read:it would would render that as unquoted python.
openapi-generator version
4.2.3 (supplied via python/pip) -- I have seen this apparent bug in master
OpenAPI declaration file content or url
(I'll render a full test case if requested, I think it's apparent from the above and probably near existing fixtures)
Command line used for generation
Steps to reproduce
Related issues/PRs
(not found)
Suggest a fix/enhancement
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/python-flask/controller_test.mustache#L42
I believe the issue is in this line of code, with a lack of quoting -- but I have not traced into how th example object is ... typed in or by mustache yet.