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
From openapi-generator version 6.5.0 in Java DTO classes there are all default parameterless constructors now marked as Deprecated, and there are added new parametric constructor with fields defined in OpenAPI as required
It's a very bad idea for the following reasons:
if the company uses quality controls, all existing code is now reported as using the deprecated method
code using a parametric constructor as opposed to builder methods is less resistant to changes in the OpenAPI definition, such as changing the attribute obligation and especially changing its order!
In addition, the parametric constructor must remain in the code forever, because the json parser needs it, so marking it as deprecated is clearly wrong!
Please remove this nonsense.
The text was updated successfully, but these errors were encountered:
From openapi-generator version 6.5.0 in Java DTO classes there are all default parameterless constructors now marked as Deprecated, and there are added new parametric constructor with fields defined in OpenAPI as required
It's a very bad idea for the following reasons:
if the company uses quality controls, all existing code is now reported as using the deprecated method
code using a parametric constructor as opposed to builder methods is less resistant to changes in the OpenAPI definition, such as changing the attribute obligation and especially changing its order!
In addition, the parametric constructor must remain in the code forever, because the json parser needs it, so marking it as deprecated is clearly wrong!
Please remove this nonsense.
The text was updated successfully, but these errors were encountered: