0.7.0
ADDED:
- A separate responder class
ExceptionFactoryInterface
which helps you to fully customize error messagesJsonApi::hydrate()
helper method to make hydration easier- Integrated content negotiation and request/response validation from Woohoo Labs. Yin-Middlewares
- Even more extensive documentation
CHANGED:
- JSON API exceptions extend
JsonApiException
thus they can be catched easier - Documents are moved to
JsonApi\Document
namespace fromJsonApi\Transfomer
- Refactored transformation to fix inclusion of multiple identical resource objects
- When the data member is missing from the top source, the appropriate exception is thrown
REMOVED:
- Different types of responses (e.g.:
FetchResponse
)
FIXED:
- Compound documents now can't include more than one resource object for each type and id pair
- Request body was always null
- Single resource documents didn't contain the data top-level member unless resource ID was 1