@@ -58,13 +58,16 @@ Available built-in helper validators:
58
58
- ` FormBuilderValidators.aggregate() ` - runs the validators in parallel, collecting all errors.
59
59
- ` FormBuilderValidators.log() ` - runs the validator and logs the value at a specific point in the validation chain.
60
60
- ` FormBuilderValidators.skipWhen() ` - runs the validator and skips the validation when a certain condition is met.
61
+ - ` FormBuilderValidators.defaultValue() ` - runs the validator using the default value when the provided value is null.
61
62
62
63
Available built-in type validators include:
63
64
64
65
- ` FormBuilderValidators.equal() ` - requires the field's value to be equal to the provided object.
65
66
- ` FormBuilderValidators.integer() ` - requires the field's value to be an integer.
66
- - ` FormBuilderValidators.date() ` - requires the field's value to be a valid date string.
67
+ - ` FormBuilderValidators.dateString() ` - requires the field's value to be a valid date string.
68
+ - ` FormBuilderValidators.dateTime() ` - requires the field's value to be a valid date time.
67
69
- ` FormBuilderValidators.dateRange() ` - requires the field's value to be a within a date range.
70
+ - ` FormBuilderValidators.time() ` - requires the field's value to be a valid time string.
68
71
- ` FormBuilderValidators.match() ` - requires the field's value to match the provided regex pattern.
69
72
- ` FormBuilderValidators.notMatch() ` - requires the field's value to not match the provided regex pattern.
70
73
- ` FormBuilderValidators.max() ` - requires the field's value to be less than or equal to the provided number.
@@ -78,18 +81,19 @@ Available built-in type validators include:
78
81
- ` FormBuilderValidators.required() ` - requires the field to have a non-empty value.
79
82
- ` FormBuilderValidators.uppercase() ` - requires the field's value to be uppercase.
80
83
- ` FormBuilderValidators.lowercase() ` - requires the field's value to be lowercase.
81
- - ` FormBuilderValidators.mustBeTrue () ` - requires the field's to be true.
82
- - ` FormBuilderValidators.mustBeFalse () ` - requires the field's to be false.
84
+ - ` FormBuilderValidators.isTrue () ` - requires the field's to be true.
85
+ - ` FormBuilderValidators.isFalse () ` - requires the field's to be false.
83
86
- ` FormBuilderValidators.hasSpecialChars() ` - requires the field's to contain a specified number of special characters.
84
87
- ` FormBuilderValidators.hasUppercaseChars() ` - requires the field's to contain a specified number of uppercase characters.
85
88
- ` FormBuilderValidators.hasLowercaseChars() ` - requires the field's to contain a specified number of lowercase characters.
86
89
- ` FormBuilderValidators.hasNumericChars() ` - requires the field's to contain a specified number of numeric characters.
87
- - ` FormBuilderValidators.conditional() ` - requires the field's to validate with another validator conditionally.
88
90
- ` FormBuilderValidators.alphabetical() ` - requires the field's to contain only alphabetical characters.
89
91
- ` FormBuilderValidators.oddNumber() ` - requires the field's to be an odd number.
90
92
- ` FormBuilderValidators.evenNumber() ` - requires the field's to be an even number.
91
93
- ` FormBuilderValidators.between() ` - requires the field's to be between two numbers.
92
- - ` FormBuilderValidators.inList() ` - requires the field's to be in the provided list.
94
+ - ` FormBuilderValidators.containsElement() ` - requires the field's to be in the provided list.
95
+ - ` FormBuilderValidators.unique() ` - requires the field's to be unique in the provided list.
96
+ - ` FormBuilderValidators.singleLine() ` - requires the field's string to be a single line of text.
93
97
94
98
Available built-in use-case validators include:
95
99
@@ -112,6 +116,20 @@ Available built-in use-case validators include:
112
116
- ` FormBuilderValidators.portNumber() ` - requires the field's to be an valid port number.
113
117
- ` FormBuilderValidators.macAddress() ` - requires the field's to be an valid MAC address.
114
118
- ` FormBuilderValidators.iban() ` - requires the field's to be an valid IBAN.
119
+ - ` FormBuilderValidators.bic() ` - requires the field's to be an valid BIC.
120
+ - ` FormBuilderValidators.isbn() ` - requires the field's to be an valid ISBN.
121
+
122
+ Available extension methods used for chaining validators:
123
+
124
+ - ` FormBuilderValidator.and() ` - Combines the current validator with another validator using logical AND.
125
+ - ` FormBuilderValidator.or() ` - Combines the current validator with another validator using logical OR.
126
+ - ` FormBuilderValidator.not() ` - Negates the current validator.
127
+ - ` FormBuilderValidator.when() ` - Adds a condition to apply the validator only if the condition is met.
128
+ - ` FormBuilderValidator.unless() ` - Adds a condition to apply the validator only if the condition is not met.
129
+ - ` FormBuilderValidator.transform() ` - Transforms the value before applying the validator.
130
+ - ` FormBuilderValidator.skipWhen() ` - Skips the validator if the condition is met.
131
+ - ` FormBuilderValidator.log() ` - Logs the value during the validation process.
132
+ - ` FormBuilderValidator.withMessage() ` - Overrides the error message of the current validator.
115
133
116
134
### Supported languages
117
135
@@ -142,6 +160,7 @@ Validators support default `errorText` messages in these languages:
142
160
- Italian (it)
143
161
- Japanese (ja)
144
162
- Korean (ko)
163
+ - Khmer (km)
145
164
- Lao (lo)
146
165
- Malay (ms)
147
166
- Mongolian (mn)
0 commit comments