cbValidation
v3.x
v3.x
  • Introduction
  • Intro
    • Release History
      • What's New With 3.3.0
      • What's New With 3.2.0
      • What's New With 3.1.0
      • What's New With 3.0.0
      • What's New With 2.1.0
      • What's New With 2.0.0
    • About This Book
      • Author
  • Overview
    • Installation
    • Configuration
    • Declaring Constraints
      • Configuration File
      • Domain Object
      • A-la-carte
    • Available Constraints
      • Custom Message Replacements
      • Constraint Custom Messages
      • Nested Struct and Array Field Name Shortcuts
    • Validating Constraints
      • Validating With Failures
      • Validating with shared constraints
      • Validating with a-la-carte constraints
      • Validating Custom Fields
      • Validating With Profiles
    • Displaying Errors
    • WireBox Integration
  • Advanced
    • Custom Validators
    • Unique ORM Validator
    • i18n Integration
    • Custom Validation Managers
Powered by GitBook
On this page

Was this helpful?

Edit on Git
Export as PDF
  1. Intro
  2. Release History

What's New With 3.1.0

2021-MAY-15

[3.1.0] => 2021-MAY-15

Added

  • New validator: ArrayItem which can validate an array's items and make sure all the items pass validation against a specific constraints schema.

  • New validator: DateEquals which can help you validate that a target value is a date and is the same date as the validation date or other field

  • New validator: After which can help you validate that a target value is a date and is after the validation date

  • New validator: AfterOrEqual which can help you validate that a target value is a date and is after or equal the validation date

  • New validator: Before which can help you validate that a target value is a date and is before the validation date

  • New validator: BeforeOrEqual which can help you validate that a target value is a date and is before or equal the validation date

  • New onError( closure ), onSuccess( closure ) callbacks that can be used to validate results using the validate() method and concatenate the callbacks.

  • New assert() helper that can assit you in validating truthful expressions or throwing exceptions

  • Two new helpers: validateIsNullorEmpty() and validateHasValue() so you can do simple validations not only on objects and constraints.

  • RequiredIf, RequiredUnless can now be declared with a simple value pointing to a field. Basically testing if anotherField exists, or unless anotherField exists.

  • New BaseValidator for usage by all validators to bring uniformity, global di, and helpers.

Changed

  • The IValidator removes the getName() since that comes from the BaseValidator now.

  • The UniqueValidator now supports both creation and update checks with new constraints.

  • Removed hard interface requirements to avoid lots of issues across CFML engines. Moved them to the interfaces folder so we can continue to document them and use them without direct compilation.

Fixed

  • Metadata for arguments did not have the right spacing for tosn of validators.

  • Added the missing rules struct argument to several validators that missed it.

PreviousWhat's New With 3.2.0NextWhat's New With 3.0.0

Last updated 3 years ago

Was this helpful?