swagger-api / swagger-api/swagger-codegen
can the swagger be configured to be a subpackage of a parent package for the python generated source.?
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
can the swagger be configured to be a sub-package of a parent package for the python generated source.?
for instance
- host_package
- init.py
- swager_client
-init.py
when accessing host_package, the swagger_client should be part of it.
Swagger-codegen version
using the jar file swagger-codegen-cli-2.3.1.jar
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Python generator invoked by swagger-codegen-cli-2.3.1.jar and inspect how its package name and output directory are configured. Reproduce generation with a parent package and verify whether the resulting files can be imported as host_package.swagger_client; done means the supported configuration and generated layout are clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100