Skip to content

Release 1.4

Choose a tag to compare

@igorpocta igorpocta released this 06 Feb 13:13
· 75 commits to main since this release

Validation Groups

  • New groups parameter on all validators (default: ['Default'])
  • GroupSequenceProviderInterface — object determines which groups to validate based on its state

Recursive Validation

  • #[Valid] attribute for nested objects and arrays of objects
  • Errors with dot-notation paths: shippingAddress.city, items[0].quantity

Count Validator

  • #[Count(min: 1, max: 10)] for array size validation

Callback on Methods

  • #[Callback] on class methods for cross-field validation
  • Returns array<string, string> (field path => error message)

Arrays of Scalars

  • ArrayElementType enum for typed scalar arrays (Int, String, Float, Bool)
  • Backward compatible with string type names

Documentation

  • README split into concise overview + 8 subpages in docs/