OpenAPITools / OpenAPITools/openapi-generator

[BUG][JAVA] generateBuilders config not working or being ignored

Open
#20,320 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

Setting the Java generateBuilders config to "true" is not generating the model's Builder functions. Are there specific dependencies or plugins that need to be included for this to work? The documentation does not specify any requirements.

openapi-generator version

Using version 6.6.0

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 with the Java generator configuration documentation and reproduce the report using OpenAPI Generator 6.6.0 with generateBuilders set to true. Check whether generated models contain the expected Builder functions and identify any required dependency or plugin; the issue is done when the behavior works or the documentation states the requirements clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.