Skip to content

v2.2.0

Choose a tag to compare

@SoloPHP SoloPHP released this 14 Feb 14:16
· 16 commits to main since this release

New Features

  • Nested Items — Validate arrays of nested objects via #[Field(items: OrderItemRequest::class)]. Each element goes through the full pipeline (validation, casting, pre/post-processing). Validation errors use dot-notation (items.0.product).
  • handleArray() — Process raw data arrays without a PSR-7 request.

Configuration Validation

  • items must reference a class extending Request
  • items requires array or ?array property type
  • items and generator are mutually exclusive