We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is the code from PythonClientCodegen.java that checks the config property for generateSourceCodeOnly:
generateSourceCodeOnly
Boolean generateSourceCodeOnly = false; if (additionalProperties.containsKey(CodegenConstants.SOURCECODEONLY_GENERATION)) { generateSourceCodeOnly = true; }
It's pretty obvious that when the config json includes:
{ "generateSourceCodeOnly": false }
...the above code will incorrectly set generateSourceCodeOnly to true.
true
4.0.0
< any valid declaration file >
openapi-generator generate -i openapi.yaml -g python -c config.json
Run the above command on a valid declaration file with generateSourceCodeOnly set to false in the config.json.
false
Actually set the value to what's in the config.
Boolean generateSourceCodeOnly = false; if (additionalProperties.containsKey(CodegenConstants.SOURCECODEONLY_GENERATION)) { generateSourceCodeOnly = convertPropertyToBoolean(CodegenConstants.SOURCECODEONLY_GENERATION); }
The text was updated successfully, but these errors were encountered:
👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.
The team will review the labels and make any necessary changes.
Sorry, something went wrong.
I think it should be fixed by #2015. Please give the latest master a try.
Closing this for the time being. We'll reopen it if it's still an issue.
Searched but still missed it. Thanks.
if (additionalProperties.containsKey(CodegenConstants.SOURCECODEONLY_GENERATION)) { generateSourceCodeOnly = convertPropertyToBoolean(CodegenConstants.SOURCECODEONLY_GENERATION); }
Do you mind filing a PR with your suggested fix if it's still an issue?
Nah, #2015 fixed it.
No branches or pull requests
Description
This is the code from PythonClientCodegen.java that checks the config property for
generateSourceCodeOnly
:It's pretty obvious that when the config json includes:
...the above code will incorrectly set
generateSourceCodeOnly
totrue
.openapi-generator version
4.0.0
OpenAPI declaration file content or url
< any valid declaration file >
Command line used for generation
openapi-generator generate -i openapi.yaml -g python -c config.json
Steps to reproduce
Run the above command on a valid declaration file with
generateSourceCodeOnly
set tofalse
in the config.json.Suggest a fix
Actually set the value to what's in the config.
The text was updated successfully, but these errors were encountered: