swagger-api / swagger-api/swagger-codegen
[Python] Generating Unique Module Names
Open
@HugoMario is already working on this.
Since Aug 14, 2020.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I have two API specs, but the generator for python produces the same module name (openapi_client) for each one. I need to import both into a project. How can I configure the generator to produce to unique package names under the lib directory?
Swagger-codegen version
3.0.0
Swagger declaration file content or url
N/A
Command line used for generation
java -jar ../../Nemo-thirdparty/openapi-generator-3.2.0/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i ../test_spec_01.yaml -g python -o ./pyclient
Steps to reproduce
Run above command
Related issues/PRs
N/A
Suggest a fix/enhancement
N/A
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.
Assessment
This issue has not been assessed yet.