PackageTrack
Sign in Get early access

laravel-json-api/spec

Validate JSON documents for compliance with the JSON:API specification.

v3.3.0 1.7M downloads/mo #2965 most downloaded on Packagist laravel-json-api/spec

What this package is like to depend on

Last release 4 months ago

28 Mar 2026

Release timing varies

gaps range from 8 days to 13 months

Nearly every release is documented

notes for 10 of 10 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

16 releases · first in 2021

1 release in the last 12 months

see the full history below

Release timeline

16 releases · Jan 2021 to Mar 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 16
  1. v3.3.0 28 Mar 2026
    Release notes

    Added

    • Package now supports Laravel 13.

    Changed

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

    Added

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

    Added

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

    Fixed

    • Removed deprecation notices in PHP 8.4.
    Open source →
  4. v3.0.0 14 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 →
  5. v2.0.1 29 Oct 2023
    Release notes

    Fix translation keys in PT-BR translation files.

    Open source →
    Release notes

    Fixed

    • #7 Fix translation keys in the PT-BR translation file.
    Open source →
  6. v2.0.0 14 Feb 2023
    Release notes

    Changed

    • Upgraded to Laravel 10 and set minimum PHP version to 8.1.
    Open source →
  7. v1.2.0 10 Apr 2022
    Release notes

    Add Spanish and Brazilian Portuguese translations.

    Open source →
    Release notes

    Added

    • #6 Added Spanish and Brazilian Portuguese translations.
    Open source →
  8. v1.1.1 01 Apr 2022
    Release notes

    Fixed

    • The package now accepts "0" as a valid client generated id. Previously it was rejected with a message that the id could not be empty.
    • The package now accepts a document for a resource with an expected id of "0". Previously the package did not recognise zero as an expected id.
    Open source →
  9. v1.1.0 09 Feb 2022
    Release notes

    Laravel 9 and add Italian translations.

    Open source →
    Release notes

    Added

    • Package now supports Laravel 9.
    • Package now supports 2.0 of the laravel-json-api/core dependency.
    • #5 Add Italian translation files.
    Open source →
  10. v1.0.0 31 Jul 2021
    Release notes

    Initial stable release.

    Open source →
    Release notes

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

    Open source →
  11. v1.0.0-beta.2 10 Jul 2021 pre-release
    Release notes

    Changed

    • BREAKING JSON decoding has been moved to a JsonDecoder class. This now throws a JsonApiException with translated error objects. Previously it threw the UnexpectedDocumentException class.
    • BREAKING Document builder classes now expect the JsonDecoder as their first constructor argument. This is unlikely to affect consuming applications as the builder classes should be created via the service container.

    Removed

    • BREAKING Removed the UnexpectedDocumentException class as it is no longer in use.
    Open source →
  12. v1.0.0-beta.1 30 Mar 2021 pre-release
    Release notes

    Initial beta release, no changes since alpha.4.

    Open source →
  13. v1.0.0-alpha.4 27 Feb 2021 pre-release
    Release notes

    Added

    • Decoding JSON document now rejects an empty string with a specific exception message indicating that JSON is expected.
    • Sending an incorrect resource type for a relationship is now rejected. For example, if a relation expects tags but the client provides posts, it will be rejected with a message that posts are not supported.

    Changed

    • BREAKING The ToOne, ToMany and Identifier value objects now expect the relation object to be passed into their constructor. This also affects the methods on the factory to create them.
    Open source →
  14. v1.0.0-alpha.3 09 Feb 2021 pre-release
    Release notes

    Added

    • Added French translations for error messages.
    • If a to-many relation is sent for a to-one field (and vice versa), the value will be rejected with a new message that clearly indicates that the relation type is invalid.

    Changed

    • BREAKING The constructor for the to-many and to-one values now expect the relation name to be provided. This also means the factory create methods for these values has been updated to expect the relation name.
    Open source →
  15. v1.0.0-alpha.2 02 Feb 2021 pre-release
    Release notes

    Bugfix

    • #1 Add missing package discovery configuration to the composer.json.
    Open source →
  16. 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