OpenAPITools / OpenAPITools/openapi-generator

Refactor AbstractJavaCodegen and inheriting generators to allow use of modern Swagger annotations

Open
#7,112 12 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

In #2972, #6108, #5478, and many others there are complaints about old libraries/annotations being used in various Java generators. As a user of OpenAPI Generator who works in a number of Java toolkits/frameworks, I would like to see the AbstractJavaCodegen and all child generators updated to allow the use of the latest annotations and features of OpenAPI.

openapi-generator version

v5.0.0 Beta

Related issues/PRs

#2972, #6108, #5478

Suggest a fix/enhancement

I will be preparing a fork/branch which I will link in the comments below.

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 locating AbstractJavaCodegen and its inheriting Java generators, then review related issues #2972, #6108, and #5478. Done means the affected generators support modern Swagger annotations and features consistently; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.