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
I've reread ValidationMethod.NONE javadoc and it seems that it is making attributes non mandatory, and unfortunately enough users might rely on this behavior even if a little bit regrettable in a way it is named/documented. So "fixing" it is not an option.
I've introduced new ValidationMethod.MANDATORY_ONLY constant to still have non-nullable non-default attributes mandatory with the regular check for missing attributes, just omit null-check on value.
Hi. It seems that there is an incompatibility between
allMandatoryParameters
andvalidationMethod = NONE
.When having something like:
only a no-args factory method
MyType.of()
is created instead of the expectedMyType.of(String property)
.If I use
allParameters
instead ofallMandatoryParameters
or removevalidationMethod = NONE
everything works as expected.The text was updated successfully, but these errors were encountered: