OpenAPITools / OpenAPITools/openapi-generator

[REQ][kotlin-spring] Add @ApiModelProperty for kotlin-spring generator

Open
#3,940 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

I have a problem with kotlin-spring generator.

It doesn't preserve example information and store description in the Java doc format instead of usage @ApiModelProperty compare to the spring generator.

Springfox doesn't show example and description information at all(

I use openapi-generator 4.1.2 and springfox 2.9.2.

Thanks in advance!

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

Compare the kotlin-spring generator with the spring generator, focusing on how example and description information is emitted. Confirm the generated Kotlin output uses @ApiModelProperty so Springfox displays both values, rather than storing the description only in JavaDoc.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, spring
Domain
api, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.