NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #3120 most downloaded on Packagist
Laravel validation for JSON:API resources.
Last release 6 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
One column per quarter.
Package now supports Laravel 13.
laravel-json-api/core v4.Package now supports Laravel 11 and 12.
Remove deprecation notices in PHP 8.4.
laravel-json-api/core v4 or v5.Minor change to error iterator due to Laravel bug
Minor change to error iterator due to Laravel bug
array_shift to avoid potential problem
introduced in Laravel.New JSON array and object rules.
New JSON array and object rules.
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.Package is now licensed under the MIT License.
8.2.docs: update changelog and bump version
docs: update changelog and bump version
array_shift to avoid potential problem
introduced in Laravel.Upgraded to Laravel 10 and set minimum PHP version to 8.1.
8.1.Fix array validation when value is not an array.
Fix array validation when value is not an array.
AllowedFieldSetsAllowedPageParametersAllowedFilterParametersAllowedCountableFields rule now correctly passes an empty string.Fix bug when validating fields query parameter.
Fix bug when validating fields query parameter.
AllowedFieldSets validation of an empty
value (empty string or null) for a resource type's fields.Removed unused dynamic properties from two rule classes. These were causing deprecation failures in PHP 8.2.
### Added - #8 Add Spanish and Brazilian Portuguese translations.
Added return types to internal methods to remove deprecation messages in PHP 8.1.
laravel-json-api/core dependency version is now 2.0.### Added - #7 Add Italian translation files.
JsonNumber validates that the value is a number in JSON (i.e. integer or float), or just an integer.
JsonNumber validates that the value is a number in JSON (i.e. integer or float), or just an integer.JsonBoolean validates that the value is a boolean in JSON. It can also be used for query string parameters that
will be filtered to booleans via its asString() method.Initial stable release, with no changes from 1.0.0-beta.3.
Initial stable release, with no changes from 1.0.0-beta.3.
### Fixed - #4 Ensure JSON pointer does not have a double slash when using the withSourcePrefix() method on the ValidatorErrorIterator class. - #3 Add
Updated the AllowedSortParameters rule class to use renamed method on the Schema contract.
AllowedSortParameters rule class to use renamed method on the Schema contract.New AllowedCountableFields rule, which can be created via the Rule::countable and Rule::countableForPolymorph methods.
AllowedCountableFields rule, which can be created via the Rule::countable and Rule::countableForPolymorph
methods.New Rule::includePathsForPolymorph() method. This returns an include path rule that is configured to allow all the include paths for every inverse sch
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.The sparse field sets rule now rejects with a specific message indicating if any of the supplied resource types in the fields query parameter are not
fields query parameter are not recognised.Added French translations for error messages.
### Bugfix - #1 Added package discovery configuration to the composer.json.
composer.json.Initial release.
Initial release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →