OpenAPITools / OpenAPITools/openapi-generator

[REQ] Kotlin Enum.values() to be replaced

Open
#21,989 1 comment 1 reaction 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

Is your feature request related to a problem? Please describe.

Kotlin Warnings

Describe the solution you'd like

'Enum.values()' is recommended to be replaced by 'Enum.entries' since 1.9

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

No files, templates, entry points, or tests are named. Start by searching the repository for Kotlin Enum.values() usages, identify which generated Kotlin targets they affect, and then find the corresponding generator tests. Done means the applicable usages are replaced with Enum.entries and the affected generation tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.