Bug Report Checklist
Description
Installing a client generated using the python-experimental generator does not include the api_endpoints because the empty init.py files for those submodules are not generated.
The generated code looks like this:
client/<app>/
__init__.py
api/
__init__.py
<name>_api.py
<name>_api_endpoints/<method>.py
but should look like this
client/<app>/
__init__.py
api/
__init__.py
<name>_api.py
<name>_api_endpoints/<method>.py
__init__py
Note that additional __init__.py in directory <name>_api_endpoints/
As the __init__py in directory <name>_api_endpoints/ is missing, <method>.py does not get installed by setup.py
openapi-generator version
trunk of today
OpenAPI declaration file content or url
Generation Details
Using python-experimental
Steps to reproduce
Related issues/PRs
Suggest a fix
The generator should add those missing __init__.py files in the <api>_api_endpoints subdirectories
Bug Report Checklist
Description
Installing a client generated using the python-experimental generator does not include the api_endpoints because the empty init.py files for those submodules are not generated.
The generated code looks like this:
but should look like this
Note that additional
__init__.pyin directory<name>_api_endpoints/As the
__init__pyin directory<name>_api_endpoints/is missing,<method>.pydoes not get installed bysetup.pyopenapi-generator version
trunk of today
OpenAPI declaration file content or url
Generation Details
Using python-experimental
Steps to reproduce
Related issues/PRs
Suggest a fix
The generator should add those missing
__init__.pyfiles in the<api>_api_endpointssubdirectories