swagger-api / swagger-api/swagger-codegen

[Java] Generate Lombok @Value instead of POJO

Open
#3,052 15 comments 65 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Java Enhancement: Feature help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

This enhancement would allow generation of models using Lombok's @Value annotation instead of a POJO with getters and setters.

Swagger-codegen version

2.1.6

Please vote for this issue if interested or comment if you are planning a PR on this.

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

The issue names no files, tests, or entry points, so first locate the Java model-generation templates and configuration path. Confirm how Swagger Codegen 2.1.6 selects generated model styles. Done means an explicit generation path produces models annotated with Lombok @Value instead of POJO getters and setters, with tests covering the result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.