swagger-api / swagger-api/swagger-codegen
Python generator ignores case
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
-Dcase_option=camel or --additional_properties case_option=camel are ignored during generation of python code.
Swagger-codegen version
latest tag using Docker
Swagger declaration file content or url
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3 generate -Dcase_option=camel -i /local/uedei-api-specification-3.8-stable.json -l python -o /local/out
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3 generate --additional_properties case_option=camel -i /local/uedei-api-specification-3.8-stable.json -l python -o /local/out
Command line used for generation
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3 generate -Dcase_option=camel -i /local/uedei-api-specification-3.8-stable.json -l python -o /local/out
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3 generate --additional_properties case_option=camel -i /local/uedei-api-specification-3.8-stable.json -l python -o /local/out
Steps to reproduce
...
Related issues/PRs
...
Suggest a fix/enhancement
...
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 by reproducing the two Docker generation commands with uedei-api-specification-3.8-stable.json and compare Python output with and without case_option=camel. Trace how the Python generator receives that option, then add coverage for the expected camel-case output and confirm both command-line forms behave consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100