feature
: Added constraintProfiles
to allow you to define which fields to validate according to defined profiles: https://github.com/coldbox-modules/cbvalidation/issues/37
feature
: Updated RequiredUnless
and RequiredIf
to use struct literal notation instead of the weird parsing we did.
feature
: Added the Unique
validator thanks to @elpete!
improvement
: Added null
support for the RequiredIf,RequiredUnless
validator values
No more manual discovery of validators, automated registration and lookup process, cleaned lots of code on this one!
New Validator: Accepted
- The field under validation must be yes, on, 1, or true. This is useful for validating "Terms of Service" acceptance.
New Validator: Alpha
- Only allows alphabetic characters
New Validator: RequiredUnless
with validation data as a struct literal { anotherField:value, ... }
- The field under validation must be present and not empty unless the anotherfield
field is equal to the passed value
.
New Validator: RequiredIf
with validation data as a struct literal { anotherField:value, ... }
- The field under validation must be present and not empty if the anotherfield
field is equal to the passed value
.
Accelerated validation by removing type checks. ACF chokes on interface checks
Consistency on all validators to ignore null or empty values except the Required
validator
Formatting consistencies
Improve error messages to describe better validation
Get away from evaluate()
instead use invoke()
Bugs
: Fixed lots of wrong type exceptions
Compat
: Remove ACF11 support
In this section you will find the release notes for each version we release under this major version. If you are looking for the release notes of previous major versions use the version switcher at the top left of this documentation book. Here is a breakdown of our major version releases.