Special Rules
Error code: 'WRONG_EMAIL'
Example:
{ login: 'email' }
url
Allows you to validate url. Allows 'HTTP' and 'HTTPS' protocols. Protocol is required.
Error code: 'WRONG_URL'
Example:
{ url: 'url' }
iso_date
Check whether a value is an ISO 8601 date (without time). Allowed date example - "2014-08-14"
Error code: 'WRONG_DATE'
Example:
{ date: 'iso_date' }
equal_to_field
Error code: 'FIELDS_NOT_EQUAL'
Example:
{ password2: { 'equal_to_field': 'password' } }