This repository has been archived by the owner on May 4, 2022. It is now read-only.
Releases: NicolasGuilloux/chaplean-dto-handler-bundle
Releases · NicolasGuilloux/chaplean-dto-handler-bundle
Version 2.3.3
Version 2.3.2
Bug fix:
Fix the top level DTO validation again. Encapsulate the DataTransferObjectParamConverter request into cloned request to avoid working on original request.
Version 2.3.1
Bug fix:
- Fix the top level DTO validation, where it previously validated all sub DTO instead of validating the top level DTO and let the validator cascading on the properties.
2.3.0
New feature:
- The DTO handler can now also bind data from a json file in a multipart/form-data request. It now loads the content with the following priority:
Request > File > Attributes > Query
. The json file in the body is identified by the mime typeapplication/json
ortext/json
. The DTO handler will also remove these files from the Reques object to leave you with only the other files in your multipart body (such as uploaded images).
Version 2.2.4
Bug fix:
- Fix unintended breaking change introduced in the previous release.
Version 2.2.3
Bug fix:
- Don't treat null as a valid value when converting a value to an entity.
Version 2.2.2
Bug fix:
- Handles the exception returned by the manager during the conversion, and transforms it into violations.
Version 2.2.1
Bug fix:
- Fix default values in the bundle configuration definition.
Version 2.2.0
New features
- The ability to set validation groups linked to an HTTP status code (doc).
- Add raw input data validation using the dto_raw_input_validation validation group (doc).
- Add the Field annotation (doc).
- Add the utility to bind an array to a DTO using the ParamConverter (doc).
Version 2.1.2
Bug fix:
- The
@Assert\DateTime
and@Assert\Date
will now transform the property type inDateTime
if no type is set. - You can now add a type to bypass the exception thrown by a
ParamConverter
. Check the documentation.