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
Are there any plans to add implementations for default validation tasks like email, etc or will this be left to the user? if so, whats the best way to create custom validators?
I ended up writing custom lots of custom validators anyway because i didn't find another way to change the validation failed messages.
These often look like
class ValidGender()
extends NullSafeValidator[ String ]( Set("m", "f", "u").contains(_), _ -> s"must be a valid gender [m ,f, u]" )
def validGender: WixValidator[ String ] = new ValidGender()
The text was updated successfully, but these errors were encountered:
This looks like a very solid custom validator (with the possible exception that you can simply use an object instead of instantiating a stateless class).
Per your original question, I'm basically collecting sensible use cases of what to end to the library. E-mail might be a good use case, do you have any others?
For me accord does a great job what would make it even better if we had the possibility to customize the violation messages and maybe even types as already stated in the roadmap
Are there any plans to add implementations for default validation tasks like email, etc or will this be left to the user? if so, whats the best way to create custom validators?
I ended up writing custom lots of custom validators anyway because i didn't find another way to change the validation failed messages.
These often look like
The text was updated successfully, but these errors were encountered: