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
{{ message }}
Repository navigation
Why do the *Validator traits have the regex function? #492
The default validate() impls use the regex() to do their job.
AFAIR the idea was to make the default regex available for any custom validate() impls in case they need it.
But since they are custom then most probably they won't use it ...
Activity
martin-g commentedon Feb 28, 2026
The default
validate()impls use the regex() to do their job.AFAIR the idea was to make the default regex available for any custom validate() impls in case they need it.
But since they are custom then most probably they won't use it ...
Kriskras99 commentedon Feb 28, 2026
That would make sense, but there is no default implementation for
validate.I think it would be good to add a default implementation.
martin-g commentedon Mar 2, 2026
By default I meant the implementations in the respective SpecificationXyzValidator