swagger-api / swagger-api/swagger-codegen
[Java] Support enums in path params
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Similar to #1347, it would be good to also add support of enums in path parameters.
One additional requirement: It would be good if multiple query and/or path parameters actually reference the same enumeration, that only one enumeration is generated and is then being referenced from all places where it was defined.
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 reading issue #1347 and tracing how the Java generator currently handles path and query parameters. The work is done when enum-valued path parameters are supported and repeated references to the same enumeration produce one generated enumeration reused from every applicable location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100