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
required(value, ctx, required) {
if (required === false) return true;
return value != null && value !== '';
},
causes validation to fail on an empty string. However, an empty string may very well be a valid value on for a required field. This check causes false failures. There should be a separate parameter to require a value not be empty if that intent is required.
The text was updated successfully, but these errors were encountered:
See #32. In the past, this library has been geared towards validating request bodies etc., where it makes sense to consider an empty string invalid. This will probably be changed in the next major version
Currently the code:
causes validation to fail on an empty string. However, an empty string may very well be a valid value on for a required field. This check causes false failures. There should be a separate parameter to require a value not be empty if that intent is required.
The text was updated successfully, but these errors were encountered: