swagger-api / swagger-api/swagger-codegen
[Python] Generating a client, the packageUrl configuration parameter is ignored.
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
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 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