swagger-api / swagger-api/swagger-codegen

[kotlin] support for Kotlin with SpringWebMVC

Open
#8,008 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

Please add support for serverside Kotlin with SpringWebMVC .
Currently it is possible to generate Java-Spring serverside Code and convert it with Intellij Idea to Kotlin Code. This isn't a good solution because the converted code is not realy idiomatic and doesn't use the Kotlin data class construct.

Swagger-codegen version

Swagger codegen 2.4.0

Suggest a fix/enhancement

Please add support for generating Spring-WebMVC Controller and the model classes in Kotlin.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing Java-Spring server generator and its generated Spring-WebMVC controllers and model classes. Define the Kotlin generator's expected output, including idiomatic controllers and Kotlin data classes, then verify generation against representative OpenAPI definitions.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, spring
Domain
api, backend, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.