You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ac013ff
Browse filesBrowse the repository at this point in the historyBrowse files
[Java][Spring] Do not generate required args constructor that duplicates @lombok.AllArgsConstructor (#25396)
* [Java][Spring] Do not generate required args constructor that duplicates @lombok.AllArgsConstructor
When every property of a model is required, the generated required args constructor has the same signature as the one Lombok generates for @lombok.AllArgsConstructor, so the generated class does not compile. Skip the generated constructor in that case and keep it when the signatures differ (nullable properties with openApiNullable, parent properties).
Fixes#25395
* [Java][Spring] Keep required args constructor when additionalProperties adds a Lombok parameter
The generated additionalProperties map is a field too, so @lombok.AllArgsConstructor takes it as an extra parameter and no longer collides with the required args constructor.
0 commit comments