- require Symfony 6.4+
- add Support for Symfony 7
- update all deprecations
- add
payload
to FormRequest for SF 6.3
- additional return types for event subscribers
- remove unnecessary docblock comments
- add
getInt
andgetFloat
toValidatedDataBag
- fix only pass valid data to
ValidatedDataBag
, not all including invalid data
- add
filterNulls()
toValidatedDataBag
to complementprune()
- fix validation error message handling not outputting the actual error messages
- replace
rakit/validation
library withsomnambulist/validation
Note: this is a BC break as the API is substantially different - allow Symfony 6.0+
- fix force float value to string in
preg_match()
to avoid type errors
- add
ignore
toFormRequest
to allow excluding keys from the validated data array
- add
prune()
toValidatedDataBag
to remove empty values - add
value()
toValidatedDataBag
to return default if the key exists but is empty - add additional check to
GetNullOrValue
to check if the array values are empty or not
- add
ValidatedDataBag
to hold validated data replacing the previousParameterBag
- add
__call
toFormRequest
for same items as__get
- refactor internals to make array helpers global functions
- dropped final from
nullOrValue
onFormRequest
to allow overriding in certain cases - require Symfony 5.3+
- fix
has
to not check attributes and also check files - fix
all
to fetch from query, request, files; same ashas
order
- add support for dot notation access on:
get
has
only
without
nullOrValue
only
will return a flattened array using the dot key nameswithout
returns the original data structure in a ParameterBag instance
- default can now be a callback function
- fix type issue with UUID rule and fix issue where rule fails if value is empty/null
- add float rule to test for floating point numbers
- add
nullOrValue
toFormRequest
to get many values as an array or object or null - add
without
toFormRequest
to get all parameters except those specified
- disable humanised keys by default to preserve the input/error mapping
- add prohibited/if/unless based on the same named Laravel validation rules
- add mimes replacement to work with Symfony file array
- add priority to event subscribers to ensure form-validation runs before api-bundle
- add tests for various use cases
- add file upload tests
- replacement rules to work with Symfony file array / UploadedFile
Initial commit with ideas from https://github.com/adamsafr/form-request-bundle