swagger-api / swagger-api/swagger-codegen

[Python] Generating a client, the packageUrl configuration parameter is ignored.

Open
#8,111 0 comments 1 reaction 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

Generating a Python client, the packageUrl configuration parameter is ignored. After changing it in the specified configuration file, the generated README.md file still directs users to the placeholder URL:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

Swagger-codegen version

2.3.1

Swagger declaration file content or url

--> http://docs.automox.com/api/swagger.yaml

config.json:

{
	"packageName": "automox",
	"packageVersion": "0.1.1",
	"packageUrl": "https://github.com/PatchSimple/automox-python.git"
}
Command line used for generation

swagger-codegen generate -i swagger.yaml -l python -o . -c config.json

Steps to reproduce

Generate python client with above configuration.

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 client generation path and the README.md output produced by the command using config.json; compare how packageUrl is read with the value rendered in README.md. Done means the configured repository URL appears instead of the placeholder URL when the client is generated.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.