laravel-json-api/validation
Laravel validation for JSON:API resources.
v4.4.0
1.8M downloads/mo
#2932 most downloaded on Packagist
laravel-json-api/validation
What this package is like to depend on
Last release 4 months ago
28 Mar 2026
Release timing varies
gaps range from 1 weeks to 13 months
Nearly every release is documented
notes for 16 of 16 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
24 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
24 releases · Jan 2021 to Mar 2026
2022
2023
2024
2025
2026
Releases
latest 24-
v4.4.028 Mar 2026Release notes
Open source →Added
- Package now supports Laravel 13.
Changed
- Removed support for
laravel-json-api/corev4.
-
v4.3.024 Feb 2025 -
v4.2.030 Nov 2024Release notes
Open source →Added
- Package now requires
laravel-json-api/corev4 or v5.
Fixed
- Remove deprecation notices in PHP 8.4.
- Package now requires
-
v4.1.120 Jun 2024Release notes
Open source →Fixed
- laravel#287 Use
array_shiftto avoid potential problem introduced in Laravel.
- laravel#287 Use
-
v4.1.023 Mar 2024Release notes
Open source →Added
- New rule objects:
JsonArray- ensures a value is a zero-indexed array, i.e. it would have been an array in JSON.JsonObject- ensures a value is an associative array, i.e. it would have been an object in JSON.
- New rule objects:
-
v4.0.012 Mar 2024Release notes
Open source →Changed
- Package is now licensed under the MIT License.
- BREAKING Package now requires Laravel 11.
- Minimum PHP version is now
8.2.
-
v3.0.120 Jun 2024Release notes
Open source →Fixed
- laravel#287 Use
array_shiftto avoid potential problem introduced in Laravel.
- laravel#287 Use
-
v3.0.014 Feb 2023 -
v2.1.309 Feb 2023Release notes
Open source →Fixed
- The following rules all previously errored if a non-array value was provided. This is now fixed:
AllowedFieldSetsAllowedPageParametersAllowedFilterParameters
- The
AllowedCountableFieldsrule now correctly passes an empty string.
- The following rules all previously errored if a non-array value was provided. This is now fixed:
-
v2.1.225 Jan 2023Release notes
Open source →Fixed
- laravel#225 Fix
AllowedFieldSetsvalidation of an empty value (empty string ornull) for a resource type's fields.
- laravel#225 Fix
-
v2.1.115 Jan 2023Release notes
Open source →Fixed
- Removed unused dynamic properties from two rule classes. These were causing deprecation failures in PHP 8.2.
-
v2.1.011 Apr 2022 -
v2.0.009 Feb 2022Release notes
Open source →Changed
- Package now supports Laravel 9.
- Added return types to internal methods to remove deprecation messages in PHP 8.1.
- Minimum
laravel-json-api/coredependency version is now2.0.
-
v1.2.004 Feb 2022 -
v1.1.022 Jan 2022Release notes
Open source →Added
- New validation rules:
JsonNumbervalidates that the value is a number in JSON (i.e. integer or float), or just an integer.JsonBooleanvalidates that the value is a boolean in JSON. It can also be used for query string parameters that will be filtered to booleans via itsasString()method.
- New validation rules:
-
v1.0.031 Jul 2021 -
v1.0.0-beta.310 Jul 2021 pre-release -
v1.0.0-beta.226 Apr 2021 pre-releaseRelease notes
Open source →Changed
- Updated the
AllowedSortParametersrule class to use renamed method on theSchemacontract.
- Updated the
-
v1.0.0-beta.130 Mar 2021 pre-releaseRelease notes
Open source →Added
- New
AllowedCountableFieldsrule, which can be created via theRule::countableandRule::countableForPolymorphmethods.
- New
-
v1.0.0-alpha.512 Mar 2021 pre-releaseRelease notes
Open source →Added
- New
Rule::includePathsForPolymorph()method. This returns an include path rule that is configured to allow all the include paths for every inverse schema that a polymorphic relation has.
Fixed
- The correct message is now set as the error detail when a query parameter is not supported. Previously the translation key was displayed instead of the translated message.
- New
-
v1.0.0-alpha.427 Feb 2021 pre-releaseRelease notes
Open source →Added
- The sparse field sets rule now rejects with a specific message indicating if any of the supplied resource types in the
fieldsquery parameter are not recognised.
- The sparse field sets rule now rejects with a specific message indicating if any of the supplied resource types in the
-
v1.0.0-alpha.309 Feb 2021 pre-release -
v1.0.0-alpha.202 Feb 2021 pre-release -
v1.0.0-alpha.125 Jan 2021 pre-release