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
Work done in #11403 add support for FieldValidators, such as UrlFieldValidator and IpFieldValidator as well some new corresponding fields such as DBUrl, DBIp and DBEmail
These new fields validators could benefit from having some additional configuration options:
UrlFieldValidator could benefit from being able to specify allowable schemes e.g. ['http', 'https', 'ftp']
IpFieldValidator could benefit from being able to specify the symfony constraint to use e.g. Ip:V4, Ip:V6
EmailFieldValidator could benefit from being able to specify symfony Email validation mode
Acceptance criteria
Developers are able to specify the allowable URL scheme in private static $db e.g. 'MyURL' => 'URL(50, ("http", 'https", "ftp"))' or whatever format makes sense
The same can be done with IP e.g. "'MyIP' => 'IP(32, v4)', or whatever makes sense
The same can be done with Email e.g. "MyEmail => 'Email(64, strict)', or whatever makes sense
DBField FieldValidation matches what is specified in the DB schema
FormFields are autoscaffoled with the FieldValidation that matches
UrlField::validate() is updated to use UrlFieldValidator
The text was updated successfully, but these errors were encountered:
Work done in #11403 add support for FieldValidators, such as UrlFieldValidator and IpFieldValidator as well some new corresponding fields such as DBUrl, DBIp and DBEmail
These new fields validators could benefit from having some additional configuration options:
Acceptance criteria
'MyURL' => 'URL(50, ("http", 'https", "ftp"))'
or whatever format makes senseThe text was updated successfully, but these errors were encountered: