Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stevo89519 opened this issue Dec 13, 2024 · 2 comments
Open

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

stevo89519 opened this issue Dec 13, 2024 · 2 comments

Comments

@stevo89519
Copy link

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

@jpfinne
Copy link
Contributor

jpfinne commented Dec 14, 2024

GenerateBuilders were introduced in 7.6.0
In older version you can try lombok annotations, but there is no guarantee it will work.

Disclaimer: I'm the main contributor of the builders in java

@longquanzheng
Copy link

GenerateBuilders were introduced in 7.6.0 In older version you can try lombok annotations, but there is no guarantee it will work.

Disclaimer: I'm the main contributor of the builders in java

🙏 thanks!!

Btw just curious, I looked at the commit 62c346f#diff-7c0a8f38d46f1bfd009755b75ae8eaf46a1e6a6cc6eb8f7396b537c82e2c59daR25
And thought it is supported since 4.3. Did I look at the wrong commit or missed something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants