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