PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 24
  1. v4.4.0 28 Mar 2026
    Release notes

    Added

    • Package now supports Laravel 13.

    Changed

    • Removed support for laravel-json-api/core v4.
    Open source →
  2. v4.3.0 24 Feb 2025
    Release notes

    Added

    • Package now supports Laravel 11 and 12.
    Open source →
  3. v4.2.0 30 Nov 2024
    Release notes

    Added

    • Package now requires laravel-json-api/core v4 or v5.

    Fixed

    • Remove deprecation notices in PHP 8.4.
    Open source →
  4. v4.1.1 20 Jun 2024
    Release notes

    Minor change to error iterator due to Laravel bug

    Open source →
    Release notes

    Fixed

    • laravel#287 Use array_shift to avoid potential problem introduced in Laravel.
    Open source →
  5. v4.1.0 23 Mar 2024
    Release notes

    New JSON array and object rules.

    Open source →
    Release notes

    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.
    Open source →
  6. v4.0.0 12 Mar 2024
    Release notes

    Changed

    • Package is now licensed under the MIT License.
    • BREAKING Package now requires Laravel 11.
    • Minimum PHP version is now 8.2.
    Open source →
  7. v3.0.1 20 Jun 2024
    Release notes

    docs: update changelog and bump version

    Open source →
    Release notes

    Fixed

    • laravel#287 Use array_shift to avoid potential problem introduced in Laravel.
    Open source →
  8. v3.0.0 14 Feb 2023
    Release notes

    Changed

    • Upgraded to Laravel 10 and set minimum PHP version to 8.1.
    Open source →
  9. v2.1.3 09 Feb 2023
    Release notes

    Fix array validation when value is not an array.

    Open source →
    Release notes

    Fixed

    • The following rules all previously errored if a non-array value was provided. This is now fixed:
      • AllowedFieldSets
      • AllowedPageParameters
      • AllowedFilterParameters
    • The AllowedCountableFields rule now correctly passes an empty string.
    Open source →
  10. v2.1.2 25 Jan 2023
    Release notes

    Fix bug when validating fields query parameter.

    Open source →
    Release notes

    Fixed

    • laravel#225 Fix AllowedFieldSets validation of an empty value (empty string or null) for a resource type's fields.
    Open source →
  11. v2.1.1 15 Jan 2023
    Release notes

    Fixed

    • Removed unused dynamic properties from two rule classes. These were causing deprecation failures in PHP 8.2.
    Open source →
  12. v2.1.0 11 Apr 2022
    Release notes

    Added

    • #8 Add Spanish and Brazilian Portuguese translations.
    Open source →
  13. v2.0.0 09 Feb 2022
    Release notes

    Changed

    • Package now supports Laravel 9.
    • Added return types to internal methods to remove deprecation messages in PHP 8.1.
    • Minimum laravel-json-api/core dependency version is now 2.0.
    Open source →
  14. v1.2.0 04 Feb 2022
    Release notes

    Added

    • #7 Add Italian translation files.
    Open source →
  15. v1.1.0 22 Jan 2022
    Release notes

    Added

    • New validation rules:
      • 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.
    Open source →
  16. v1.0.0 31 Jul 2021
    Release notes

    Initial stable release, with no changes from 1.0.0-beta.3.

    Open source →
  17. v1.0.0-beta.3 10 Jul 2021 pre-release
    Release notes

    Fixed

    • #4 Ensure JSON pointer does not have a double slash when using the withSourcePrefix() method on the ValidatorErrorIterator class.
    • #3 Add missing return statement to the ValidatorErrorIterator::withSourcePrefix() method.
    Open source →
  18. v1.0.0-beta.2 26 Apr 2021 pre-release
    Release notes

    Changed

    • Updated the AllowedSortParameters rule class to use renamed method on the Schema contract.
    Open source →
  19. v1.0.0-beta.1 30 Mar 2021 pre-release
    Release notes

    Added

    • New AllowedCountableFields rule, which can be created via the Rule::countable and Rule::countableForPolymorph methods.
    Open source →
  20. v1.0.0-alpha.5 12 Mar 2021 pre-release
    Release notes

    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.
    Open source →
  21. v1.0.0-alpha.4 27 Feb 2021 pre-release
    Release notes

    Added

    • 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 recognised.
    Open source →
  22. v1.0.0-alpha.3 09 Feb 2021 pre-release
    Release notes

    Added

    • Added French translations for error messages.
    Open source →
  23. v1.0.0-alpha.2 02 Feb 2021 pre-release
    Release notes

    Bugfix

    • #1 Added package discovery configuration to the composer.json.
    Open source →
  24. v1.0.0-alpha.1 25 Jan 2021 pre-release
    Release notes

    Initial release.

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive