Skip to content

Commit 245109c

Browse files
Merge pull request ExpressionEngine#646 from ExpressionEngine/feature/6.x/validation-rules
add missing validation rules
2 parents fbd4af7 + b33a1b3 commit 245109c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/development/services/validation.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,31 +129,44 @@ Occasionally, you might need to check whether a value passes a validation rule,
129129
| --------------- | ------------------------------------------------------------------------------ | --------------------- |
130130
| alpha | Any alphabetical character | alpha |
131131
| alphaDash | Alpha plus dashes and underscores | alphaDash |
132+
| alphaDashPeriodEmoji | Alpha, dashes, underscores, periods and emoji | alphaDashPeriodEmoji |
132133
| alphaNumeric | Alpha plus numbers | alphaNumeric |
134+
| authenticated | Chech that member is authenticated | authenticated |
133135
| boolean | Must be of boolean type | boolean |
134136
| email | Email addresses | email |
135137
| enum | Any in a given list | enum[blue, red, pink] |
136138
| exactLength | Input must have exactly n characters | exactLength[4] |
137139
| fileExists | File or path must exist | fileExists |
140+
| greaterOrEqualThan | Value greater than x, or equal to x | greaterOrEqualThan[5] |
138141
| greaterThan | Value greater than x | greaterThan[5] |
139142
| hexColor | A three or six-character hex code without a pound sign | hexColor |
140143
| integer | Must be an integer | integer |
141144
| ipAddress | Ip address. Optional parameters: ipv4, ipv6, public | ipAddress |
142145
| isNatural | Natural number | isNatural |
143146
| isNaturalNoZero | Natural number except zeros | isNaturalNoZero |
147+
| lessOrEqualThan | Value less than x, or equal to x | lessOrEqualThan[5] |
144148
| lessThan | Value less than x | lessThan[5] |
145149
| limitHtml | Limits the kind of HTML tags that can be present in a string | limitHtml[a,b,i,span] |
146150
| maxLength | No more than n characters | maxLength[5] |
147151
| minLength | No fewer than n characters | minLength[8] |
148152
| 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[_] |
149156
| numeric | Any number, including decimals | numeric |
157+
| passwordMatchesSecurityPolicy | Password matches security policy defined for site | passwordMatchesSecurityPolicy |
150158
| regex | Match a regular expression | regex[/^exp.*?ine$/] |
151159
| required | Must not be blank. See validation-service-required | required |
160+
| startsWith | Starts with given string | startsWith[_] |
152161
| uniqueEmail | Must be a unique email. Gmail addresses strip . before checking for uniqueness | uniqueEmail |
162+
| uniqueUsername | Must be a unique username | uniqueUsername |
153163
| url | Must be a valid URL | url |
154164
| validBase64 | Base64 character set only | validBase64 |
165+
| validPassword | Valid password | validPassword |
166+
| validScreenName | Valid screen name | validScreenName |
167+
| validUsername | Valid username | validUsername |
155168
| 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 |
157170
| xss | Must not contain content that looks like XSS (Cross Site Scripting) | xss |
158171

159172
## Handling Results

0 commit comments

Comments
 (0)