@@ -129,31 +129,44 @@ Occasionally, you might need to check whether a value passes a validation rule,
129
129
| --------------- | ------------------------------------------------------------------------------ | --------------------- |
130
130
| alpha | Any alphabetical character | alpha |
131
131
| alphaDash | Alpha plus dashes and underscores | alphaDash |
132
+ | alphaDashPeriodEmoji | Alpha, dashes, underscores, periods and emoji | alphaDashPeriodEmoji |
132
133
| alphaNumeric | Alpha plus numbers | alphaNumeric |
134
+ | authenticated | Chech that member is authenticated | authenticated |
133
135
| boolean | Must be of boolean type | boolean |
134
136
| email | Email addresses | email |
135
137
| enum | Any in a given list | enum[ blue, red, pink] |
136
138
| exactLength | Input must have exactly n characters | exactLength[ 4] |
137
139
| fileExists | File or path must exist | fileExists |
140
+ | greaterOrEqualThan | Value greater than x, or equal to x | greaterOrEqualThan[ 5] |
138
141
| greaterThan | Value greater than x | greaterThan[ 5] |
139
142
| hexColor | A three or six-character hex code without a pound sign | hexColor |
140
143
| integer | Must be an integer | integer |
141
144
| ipAddress | Ip address. Optional parameters: ipv4, ipv6, public | ipAddress |
142
145
| isNatural | Natural number | isNatural |
143
146
| isNaturalNoZero | Natural number except zeros | isNaturalNoZero |
147
+ | lessOrEqualThan | Value less than x, or equal to x | lessOrEqualThan[ 5] |
144
148
| lessThan | Value less than x | lessThan[ 5] |
145
149
| limitHtml | Limits the kind of HTML tags that can be present in a string | limitHtml[ a,b,i,span] |
146
150
| maxLength | No more than n characters | maxLength[ 5] |
147
151
| minLength | No fewer than n characters | minLength[ 8] |
148
152
| noHtml | Must not contain HTML | noHtml |
153
+ | notBanned | Chech that member is not banned from using the site | notBanned |
154
+ | notNumeric | Not a number, natural or decimal | notNumeric |
155
+ | notStartsWith | Does not start with given string | notStartsWith[ _ ] |
149
156
| numeric | Any number, including decimals | numeric |
157
+ | passwordMatchesSecurityPolicy | Password matches security policy defined for site | passwordMatchesSecurityPolicy |
150
158
| regex | Match a regular expression | regex[ /^exp.* ?ine$/] |
151
159
| required | Must not be blank. See validation-service-required | required |
160
+ | startsWith | Starts with given string | startsWith[ _ ] |
152
161
| uniqueEmail | Must be a unique email. Gmail addresses strip . before checking for uniqueness | uniqueEmail |
162
+ | uniqueUsername | Must be a unique username | uniqueUsername |
153
163
| url | Must be a valid URL | url |
154
164
| validBase64 | Base64 character set only | validBase64 |
165
+ | validPassword | Valid password | validPassword |
166
+ | validScreenName | Valid screen name | validScreenName |
167
+ | validUsername | Valid username | validUsername |
155
168
| whenPresent | Only validate if field was sent. See validation-service-when-present | whenPresent |
156
- | writable | File or path must be writable | writable |
169
+ | writable | File or path must be writable | writable |
157
170
| xss | Must not contain content that looks like XSS (Cross Site Scripting) | xss |
158
171
159
172
## Handling Results
0 commit comments