|
46 | 46 | * | domain | Valid domain | None |
|
47 | 47 | * | email | Valid email | None |
|
48 | 48 | * | ends_with | Field must end with (case sensitive) | comma separated list of strings |
|
49 |
| - * | enum | MySQL enum value, case insensitive | comma separated list of identifiers<br>**Example:** enum:Get,Post,Put,Delete | |
50 |
| - * | enum_exact | MySQL enum value, case sensitive | comma separated list of identifiers<br>**Example:** enum:ssl,tls | |
| 49 | + * | enum | MySQL enum value, case insensitive | comma separated list of identifiers. **Example:** enum:Get,Post,Put,Delete | |
| 50 | + * | enum_exact | MySQL enum value, case sensitive | comma separated list of identifiers. **Example:** enum:ssl,tls | |
51 | 51 | * | eq_field | Equal to field | field, required |
|
52 | 52 | * | equal | Value must be equal | value, required |
|
53 | 53 | * | gt_field | Greater Than field | field, required |
|
|
106 | 106 | *
|
107 | 107 | * If there are parameters, the first parameter must be a field of the current record. If this is the only parameter, or if the next parameter is also a field of the record, then the unique test is only done with the value of this field set to the current record's value.
|
108 | 108 | *
|
109 |
| - * If the next parameter is not a field of the record, it is used as a value to match for the preceeding field for the unique test. |
| 109 | + * If the next parameter is not a field of the record, it is used as a value to match for the preceding field for the unique test. |
110 | 110 | *
|
111 | 111 | * The above repeats until all parameters are exhausted.
|
112 | 112 | *
|
|
127 | 127 | * You can reverse any validator by preceding the validator with an ! (exclamation mark).
|
128 | 128 | *
|
129 | 129 | * **Example:**
|
130 |
| - * !starts_with:/ will fail if the field starts with a / |
| 130 | + * !starts_with:/ will fail if the field starts with a / character |
131 | 131 | *
|
132 | 132 | * ## OR Operator
|
133 | 133 | * You can validate a field if any one of the validators passes. Use the vertical bar (|) to separate validators. If one of the validators passes, then the the field is valid.
|
|
0 commit comments