You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the following line within modules\openapi-generator\src\main\java\org\openapitools\codegen\languages\PythonFastAPIServerCodegen.java could fix for that (or the documentation of python-fastapi generator should be adapted):
@OverridepublicvoidprocessOpts() {
super.processOpts();
if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) {
setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME));
}
Bug Report Checklist
Description
When running the openapi-generator with the argument
All generated
apis
Python files will importinstead of the expected
I did not provide an example swagger.yml file as this is a general problem for arbitrary files.
openapi-generator version
v7.9.0
Generation Details
Suggest a fix
I think the following line within
modules\openapi-generator\src\main\java\org\openapitools\codegen\languages\PythonFastAPIServerCodegen.java
could fix for that (or the documentation of python-fastapi generator should be adapted):should read
The text was updated successfully, but these errors were encountered: