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
Describe the bug
I am using global validator builder, because i want to have the same locale everywhere. bue i have noticed that whenever i am using the optional: true parameter, it overrides future required() method. i feel like it should not be an intended behaviour since the constructor of ValidationBuilder is using required()
if (!optional) required(requiredMessage);
it should base only on that or change flag optional when we are using required()
The text was updated successfully, but these errors were encountered:
Describe the bug
I am using global validator builder, because i want to have the same locale everywhere. bue i have noticed that whenever i am using the
optional: true
parameter, it overrides futurerequired()
method. i feel like it should not be an intended behaviour since the constructor ofValidationBuilder
is usingrequired()
it should base only on that or change flag
optional
when we are usingrequired()
The text was updated successfully, but these errors were encountered: