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