All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning and this changelog format.
- 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 now2.0
.
- #7 Add Italian translation files.
- 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 itsasString()
method.
Initial stable release, with no changes from 1.0.0-beta.3
.
- #4 Ensure JSON pointer does not have a double slash when
using the
withSourcePrefix()
method on theValidatorErrorIterator
class. - #3 Add missing return statement to the
ValidatorErrorIterator::withSourcePrefix()
method.
- Updated the
AllowedSortParameters
rule class to use renamed method on theSchema
contract.
- New
AllowedCountableFields
rule, which can be created via theRule::countable
andRule::countableForPolymorph
methods.
- 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.
- 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.
- 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.
- Added French translations for error messages.
- #1
Added package discovery configuration to the
composer.json
.
Initial release.