-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Open
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
I try to reproduce the minimal pet store example for the python-fastapi
template in this public repository. As I understand, each mustache template generates one or more Python files, see examples in the table below.
mustache template | generated code |
---|---|
api.mustache |
pet_api.py , store_api.py , user_api.py |
base_api.mustache |
pet_api_base.py , store_api_base.py , user_api_base.py |
As can be seen here, six classes are supposed to be generated: 3 *_api.py
and 3 *_api_base.py
.
As can be seen in my test run, only the 3 *_api.py
are generated. The 3 *_api_base.py
classes are missing.
Expected behaviour: Generation of six Python files *_api.py
and *_api_base.py
.
Actual behaviour: Generation of only three Python files *_api.py
. The three files *_api_base.py
are missing.
openapi-generator version
6.6.0 on macOS 13.4.1
OpenAPI declaration file content or url
Generation Details
See this public repository and above.
Steps to reproduce
Run the generate.sh
script with default templates.
Related issues/PRs
Suggest a fix
None.