swagger-api / swagger-api/swagger-codegen
Swagger Codegen Kotlin - Transform Array by List in Model
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
This issue aim is to open a dialog with you.
I'd like to propose an evolution in the Kotlin template.
Currently, all the array in the Swagger Spec are transformed to kotlin.Array.
I propose to change that, so to transform array to List collections instead.
I think, as in Java, it's better to handle List than Array.
What do you think about that ?
Do you think it's a bad idea. Before proposing the pull request, I prefer asking the community.
Thanks
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
The issue identifies the Kotlin template and Swagger array models but names no files or tests. Start by locating the Kotlin template entry point and checking how arrays are represented in generated models. Done means agreeing on the collection representation and validating the generated output against the project's existing tests or examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100