swagger-api / swagger-api/swagger-codegen

[Python] Generating Unique Module Names

Open
#8,695 8 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.