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
IMO this should be split into two separate validators - one for the required fields validation and another entirely separate validator for calling validate() on each field. The latter of these could by default be included in scaffolded composite validators (e.g. on CMS edit forms).
We've implemented that.
As for the whitespace we should make it not accept white-space as a "value" (i.e. if the value is only whitespace for a required field, throw a validation error) - but perhaps add a configuration option to allow it, in case someone has some valid use-case for whitespace-only values.
The current behaviour for
RequiredFields
is weird. It runs the individual validation for each field which seems like mixed concerns.It also happily accepts a white space has a non-empty string.
The text was updated successfully, but these errors were encountered: