swagger-api / swagger-api/swagger-codegen
[Python] Incorrect case for true generated in docs
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
In the docs for the kubernetes python client, the .md files generated have the default True values written as true as can be seen here. This is not an issue with the .py files though. It should say True not true.
Swagger-codegen version
2.0
Swagger declaration file content or url
Command line used for generation
--
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
I'm not sure how to fix it but could be something in the PythonClientCodegen.java file. If anyone has any ideas to fix it, I'd be happy to implement the fix.
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 modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/PythonClientCodegen.java and compare the generated Python .md and .py files using the linked Kubernetes swagger declaration. Confirm where the default True value is rendered, then verify that generated documentation uses True consistently with the Python files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100