Releases: 123inkt/symfony-request-validation
Releases · 123inkt/symfony-request-validation
v2.4.0
What's Changed
- Update actions/checkout action to v4 by @renovate in #37
- Update package versions by @frankdekker in #39
Full Changelog: v2.3.1...v2.4.0
v2.3.1
What's Changed
- Update ConstraintList to int array of Constraint by @frankdekker in #36
v2.3.0
What's Changed
- Adjust validation rules typehint to allow Constraint[] by @frankdekker in #35
v2.2.0
What's Changed
- Add PHP 8.2 by @bram123 in #23
- Use getContentTypeFormat instead of getContentType method by @frankdekker in #34
Full Changelog: v2.1.0...v2.2.0
v2.1.0
Added support for validation on json body requests.
v2.0.0
Changed the library to make use of Symfony bundle to automatically register an EventSubscriber.
Breaking changes:
- Now required to add
RequestValidationBundle::class
tobundles.php
. getValidationRules
return signature changed to:?ValidationRules
- constructor changed of
AbstractValidatedRequest
New:
- Adds
validateCustomRules
method inAbstractValidatedRequest
to allow returning a custom response when the request is invalid.
v1.0.5
- Bumped requirements to PHP7.4 and higher
- Added support for Symfony 6.
v1.0.4: Add new param to allow extra, unvalidated, fields to be included in t…
…he request (#16) * Add new param to allow extra, unvalidated, fields to be included in the request
Loosen requirements for shorthand-validation library
Merge pull request #14 from bram123/update_validation_shorthand Update the symfony-validation-shorthand requirement
Request attributes validation support
Merge pull request #13 from 123inkt/validate-request-attributes Validate request attributes