[BUG][JAVA][SPRING] When using lombok generators and generatedConstructorWithRequiredArgs
build fails
#16250
Labels
generatedConstructorWithRequiredArgs
build fails
#16250
Description
we use the spring generator with the below config
to generate constructors & builders.
WIth the new
generatedConstructorWithRequiredArgs
parameter the build fails because lombok has already generated the constructor. Then the generator attempts to do the same and fails with aconstructor already exists
error.openapi-generator version
6.6.0
Suggest a fix
I think it would be best to identify already generated constructors and just ignore them, instead of failing, since ultimately there already is a suitable constructor and hence the goal is achieved.
Not Duplicate
please note I am aware of #15494 and we have applied this workaround, but in my opinion this should work out of the box. Users shouldn't have to configure another property to work around this.
The text was updated successfully, but these errors were encountered: