swagger-api / swagger-api/swagger-codegen

can the swagger be configured to be a subpackage of a parent package for the python generated source.?

Open
#8,351 1 comment 2 reactions 0 assignees View on GitHub

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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.