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
-`FormBuilderValidators.hasSpecialChars()` - requires the field's to contain a specified number of special characters.
55
-
-`FormBuilderValidators.hasUppercaseChars()` - requires the field's to contain a specified number of uppercase characters.
56
54
-`FormBuilderValidators.hasLowercaseChars()` - requires the field's to contain a specified number of lowercase characters.
57
55
-`FormBuilderValidators.hasNumericChars()` - requires the field's to contain a specified number of numeric characters.
58
-
-`FormBuilderValidators.isTrue()` - requires the field's to be true.
56
+
-`FormBuilderValidators.hasSpecialChars()` - requires the field's to contain a specified number of special characters.
57
+
-`FormBuilderValidators.hasUppercaseChars()` - requires the field's to contain a specified number of uppercase characters.
59
58
-`FormBuilderValidators.isFalse()` - requires the field's to be false.
59
+
-`FormBuilderValidators.isTrue()` - requires the field's to be true.
60
60
61
61
### Collection validators
62
62
63
63
-`FormBuilderValidators.containsElement()` - requires the field's to be in the provided list.
64
+
-`FormBuilderValidators.equalLength()` - requires the length of the field's value to be equal to the provided minimum length.
65
+
-`FormBuilderValidators.maxLength()` - requires the length of the field's value to be less than or equal to the provided maximum size.
66
+
-`FormBuilderValidators.minLength()` - requires the length of the field's value to be greater than or equal to the provided minimum length.
67
+
-`FormBuilderValidators.range()` - requires the field's to be within a range.
64
68
-`FormBuilderValidators.unique()` - requires the field's to be unique in the provided list.
65
69
66
70
### Core validators
67
71
72
+
-`FormBuilderValidators.aggregate()` - runs the validators in parallel, collecting all errors.
68
73
-`FormBuilderValidators.compose()` - runs each validator against the value provided.
69
74
-`FormBuilderValidators.conditional()` - conditionally runs a validator against the value provided.
70
-
-`FormBuilderValidators.or()` - runs each validator against the value provided and passes when any works.
71
-
-`FormBuilderValidators.transform()` - transforms the value before running the validator.
72
-
-`FormBuilderValidators.aggregate()` - runs the validators in parallel, collecting all errors.
73
-
-`FormBuilderValidators.log()` - runs the validator and logs the value at a specific point in the validation chain.
74
-
-`FormBuilderValidators.skipWhen()` - runs the validator and skips the validation when a certain condition is met.
75
75
-`FormBuilderValidators.defaultValue()` - runs the validator using the default value when the provided value is null.
76
76
-`FormBuilderValidators.equal()` - requires the field's value to be equal to the provided object.
77
+
-`FormBuilderValidators.log()` - runs the validator and logs the value at a specific point in the validation chain.
78
+
-`FormBuilderValidators.notEqual()` - requires the field's value to be not equal to the provided object.
79
+
-`FormBuilderValidators.or()` - runs each validator against the value provided and passes when any works.
77
80
-`FormBuilderValidators.required()` - requires the field to have a non-empty value.
81
+
-`FormBuilderValidators.skipWhen()` - runs the validator and skips the validation when a certain condition is met.
82
+
-`FormBuilderValidators.transform()` - transforms the value before running the validator.
78
83
79
84
### Datetime validators
80
85
81
-
-`FormBuilderValidators.date()` - requires the field's value to be a valid date string.
82
-
-`FormBuilderValidators.dateTime()` - requires the field's value to be a valid date time.
83
-
-`FormBuilderValidators.dateRange()` - requires the field's value to be a within a date range.
84
-
-`FormBuilderValidators.datePast()` - requires the field's value to be a in the past.
85
86
-`FormBuilderValidators.dateFuture()` - requires the field's value to be in the future.
87
+
-`FormBuilderValidators.datePast()` - requires the field's value to be a in the past.
88
+
-`FormBuilderValidators.dateRange()` - requires the field's value to be a within a date range.
89
+
-`FormBuilderValidators.dateTime()` - requires the field's value to be a valid date time.
90
+
-`FormBuilderValidators.date()` - requires the field's value to be a valid date string.
86
91
-`FormBuilderValidators.time()` - requires the field's value to be a valid time string.
87
92
88
93
### File validators
89
94
90
-
-`FormBuilderValidators.path()` - requires the field's to be a valid file or folder path.
91
95
-`FormBuilderValidators.fileExtension()` - requires the field's value to a valid file extension.
92
-
-`FormBuilderValidators.fileSize()` - requires the field's to be less than the max size.
93
96
-`FormBuilderValidators.fileName()` - requires the field's to be a valid file name.
97
+
-`FormBuilderValidators.fileSize()` - requires the field's to be less than the max size.
98
+
-`FormBuilderValidators.path()` - requires the field's to be a valid file or folder path.
99
+
100
+
### Finance validators
101
+
102
+
-`FormBuilderValidators.bic()` - requires the field's to be a valid BIC.
103
+
-`FormBuilderValidators.creditCardCVC()` - requires the field's value to be a valid credit card CVC number.
104
+
-`FormBuilderValidators.creditCardExpirationDate()` - requires the field's value to be a valid credit card expiration date and can check if not expired yet.
105
+
-`FormBuilderValidators.creditCard()` - requires the field's value to be a valid credit card number.
106
+
-`FormBuilderValidators.iban()` - requires the field's to be a valid IBAN.
107
+
108
+
### Identity validators
109
+
110
+
-`FormBuilderValidators.password()` - requires the field's to be a valid password that matched required conditions.
111
+
-`FormBuilderValidators.ssn()` - requires the field's to be a valid SSN (Social Security Number).
112
+
-`FormBuilderValidators.username()` - requires the field's to be a valid username that matched required conditions.
113
+
-`FormBuilderValidators.zipCode()` - requires the field's to be a valid zip code.
94
114
95
115
### Network validators
96
116
97
117
-`FormBuilderValidators.email()` - requires the field's value to be a valid email address.
98
118
-`FormBuilderValidators.ip()` - requires the field's value to be a valid IP address.
99
-
-`FormBuilderValidators.url()` - requires the field's value to be a valid URL.
100
-
-`FormBuilderValidators.portNumber()` - requires the field's to be a valid port number.
101
-
-`FormBuilderValidators.macAddress()` - requires the field's to be a valid MAC address.
102
119
-`FormBuilderValidators.latitude()` - requires the field's to be a valid latitude.
103
120
-`FormBuilderValidators.longitude()` - requires the field's to be a valid longitude.
121
+
-`FormBuilderValidators.macAddress()` - requires the field's to be a valid MAC address.
122
+
-`FormBuilderValidators.phoneNumber()` - requires the field's value to be a valid phone number.
123
+
-`FormBuilderValidators.portNumber()` - requires the field's to be a valid port number.
124
+
-`FormBuilderValidators.url()` - requires the field's value to be a valid URL.
104
125
105
126
### Numeric validators
106
127
107
-
-`FormBuilderValidators.integer()` - requires the field's value to be an integer.
108
-
-`FormBuilderValidators.oddNumber()` - requires the field's to be an odd number.
109
-
-`FormBuilderValidators.evenNumber()` - requires the field's to be an even number.
110
128
-`FormBuilderValidators.between()` - requires the field's to be between two numbers.
129
+
-`FormBuilderValidators.evenNumber()` - requires the field's to be an even number.
130
+
-`FormBuilderValidators.integer()` - requires the field's value to be an integer.
111
131
-`FormBuilderValidators.max()` - requires the field's value to be less than or equal to the provided number.
112
-
-`FormBuilderValidators.maxLength()` - requires the length of the field's value to be less than or equal to the provided maximum size.
113
-
-`FormBuilderValidators.maxWordsCount()` - requires the word count of the field's value to be less than or equal to the provided maximum count.
114
132
-`FormBuilderValidators.min()` - requires the field's value to be greater than or equal to the provided number.
115
-
-`FormBuilderValidators.minLength()` - requires the length of the field's value to be greater than or equal to the provided minimum length.
116
-
-`FormBuilderValidators.minWordsCount()` - requires the word count of the field's value to be greater than or equal to the provided minimum count.
117
-
-`FormBuilderValidators.equalLength()` - requires the length of the field's value to be equal to the provided minimum length.
118
-
-`FormBuilderValidators.numeric()` - requires the field's value to be a valid number.
119
-
-`FormBuilderValidators.positiveNumber()` - requires the field's to be a positive number.
120
133
-`FormBuilderValidators.negativeNumber()` - requires the field's to be a negative number.
121
134
-`FormBuilderValidators.notZeroNumber()` - requires the field's to be not a number zero.
135
+
-`FormBuilderValidators.numeric()` - requires the field's value to be a valid number.
136
+
-`FormBuilderValidators.oddNumber()` - requires the field's to be an odd number.
137
+
-`FormBuilderValidators.positiveNumber()` - requires the field's to be a positive number.
122
138
123
139
### String validators
124
140
125
141
-`FormBuilderValidators.alphabetical()` - requires the field's to contain only alphabetical characters.
126
-
-`FormBuilderValidators.match()` - requires the field's value to match the provided regex pattern.
127
-
-`FormBuilderValidators.notMatch()` - requires the field's value to not match the provided regex pattern.
128
-
-`FormBuilderValidators.uppercase()` - requires the field's value to be uppercase.
142
+
-`FormBuilderValidators.contains()` - requires the substring to be in the field's value.
143
+
-`FormBuilderValidators.endsWith()` - requires the substring to be the end of the field's value.
129
144
-`FormBuilderValidators.lowercase()` - requires the field's value to be lowercase.
145
+
-`FormBuilderValidators.matchNot()` - requires the field's value to not match the provided regex pattern.
146
+
-`FormBuilderValidators.match()` - requires the field's value to match the provided regex pattern.
147
+
-`FormBuilderValidators.maxWordsCount()` - requires the word count of the field's value to be less than or equal to the provided maximum count.
148
+
-`FormBuilderValidators.minWordsCount()` - requires the word count of the field's value to be greater than or equal to the provided minimum count.
130
149
-`FormBuilderValidators.singleLine()` - requires the field's string to be a single line of text.
150
+
-`FormBuilderValidators.startsWith()` - requires the substring to be the start of the field's value.
151
+
-`FormBuilderValidators.uppercase()` - requires the field's value to be uppercase.
131
152
132
153
### Use-case validators
133
154
134
-
-`FormBuilderValidators.creditCard()` - requires the field's value to be a valid credit card number.
135
-
-`FormBuilderValidators.creditCardExpirationDate()` - requires the field's value to be a valid credit card expiration date and can check if not expired yet.
136
-
-`FormBuilderValidators.creditCardCVC()` - requires the field's value to be a valid credit card CVC number.
137
-
-`FormBuilderValidators.iban()` - requires the field's to be a valid IBAN.
138
-
-`FormBuilderValidators.bic()` - requires the field's to be a valid BIC.
139
-
-`FormBuilderValidators.isbn()` - requires the field's to be a valid ISBN.
140
-
-`FormBuilderValidators.uuid()` - requires the field's to be a valid uuid.
141
-
-`FormBuilderValidators.colorCode()` - requires the field's value to be a valid color code.
142
155
-`FormBuilderValidators.base64()` - requires the field's to be a valid base64 string.
156
+
-`FormBuilderValidators.colorCode()` - requires the field's value to be a valid color code.
157
+
-`FormBuilderValidators.isbn()` - requires the field's to be a valid ISBN.
143
158
-`FormBuilderValidators.json()` - requires the field's to be a valid json string.
144
-
-`FormBuilderValidators.password()` - requires the field's to be a valid password that matched required conditions.
145
-
-`FormBuilderValidators.zipCode()` - requires the field's to be a valid zip code.
159
+
-`FormBuilderValidators.uuid()` - requires the field's to be a valid uuid.
0 commit comments