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
Releases
latest 16-
v3.3.028 Mar 2026Release notes
Open source →Added
- Package now supports Laravel 13.
Changed
- Dropped support for
laravel-json-api/corev4.
-
v3.2.024 Feb 2025 -
v3.1.030 Nov 2024Release notes
Open source →Added
- Package now requires
laravel-json-api/corev4 or v5.
Fixed
- Removed deprecation notices in PHP 8.4.
- Package now requires
-
v3.0.014 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.
-
v2.0.129 Oct 2023 -
v2.0.014 Feb 2023 -
v1.2.010 Apr 2022 -
v1.1.101 Apr 2022Release notes
Open source →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.
- The package now accepts
-
v1.1.009 Feb 2022Release notes
Open source →Added
- Package now supports Laravel 9.
- Package now supports
2.0of thelaravel-json-api/coredependency. - #5 Add Italian translation files.
-
v1.0.031 Jul 2021 -
v1.0.0-beta.210 Jul 2021 pre-releaseRelease notes
Open source →Changed
- BREAKING JSON decoding has been moved to a
JsonDecoderclass. This now throws aJsonApiExceptionwith translated error objects. Previously it threw theUnexpectedDocumentExceptionclass. - BREAKING Document builder classes now expect the
JsonDecoderas 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
UnexpectedDocumentExceptionclass as it is no longer in use.
- BREAKING JSON decoding has been moved to a
-
v1.0.0-beta.130 Mar 2021 pre-release -
v1.0.0-alpha.427 Feb 2021 pre-releaseRelease notes
Open source →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
tagsbut the client providesposts, it will be rejected with a message thatpostsare not supported.
Changed
- BREAKING The
ToOne,ToManyandIdentifiervalue objects now expect the relation object to be passed into their constructor. This also affects the methods on the factory to create them.
-
v1.0.0-alpha.309 Feb 2021 pre-releaseRelease notes
Open source →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.
-
v1.0.0-alpha.202 Feb 2021 pre-releaseRelease notes
Open source →Bugfix
- #1 Add missing package discovery configuration to
the
composer.json.
- #1 Add missing package discovery configuration to
the
-
v1.0.0-alpha.125 Jan 2021 pre-release