swagger-api / swagger-api/swagger-codegen-generators
`uniqueItems` property is not used in data type
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 299
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
In Java, whenever an array is used, the type generated is List<T>. It would be great if the property uniqueItems could be used to change that type to a Set<T>.
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
No files, tests, or entry points are named. Start by tracing Java array type generation and how the uniqueItems property is represented, then inspect existing generator tests; done means arrays marked uniqueItems generate Set while other arrays continue to generate List.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100