Open poorya-hosseini opened 2 months ago
Just specify that you want no argument constructor in all cases.
i.e. add @lombok.NoArgsConstructor
That has been added as the workaround but I think the code generator should add the no argument constructor as it does when there are required field for the model object.
Bug Report Checklist
Description
The generator missing the no argument constructor when
x-class-extra-annotation
is used. If we add any required properties the no argument constructor is created but when the object does not have any required field the no argument constructor won't be generated.openapi-generator version
7.7.0
OpenAPI declaration file content or url
Generation Details
Generated Class
Steps to reproduce
Related issues/PRs
Suggest a fix