swagger-api / swagger-api/swagger-codegen
special character addition in enum
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Java Client Code gen does not support {'==', '&&', '||'} special characters in enum.
Enum name gets replaced with _ in the generated java client.
I could find some previous work against issue 2487 but it has a limited set.
Can you please check the possibility to include the ones I mentioned?
Alternatively, can you please advise how can i extend the list of special characters?
Swagger-codegen version
3.0.14
Swagger declaration file content or url
Command line used for generation
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 locating the Java client enum-generation path and reviewing the previous work referenced in issue 2487. Reproduce the behavior with enum values containing ==, &&, and ||; done means those values are supported or the extension mechanism is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100