cloudcreativity / json-api

Framework agnostic JSON API serialisation and deserialisation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in ResourceObjectValidator

lindyhopchris opened this issue · comments

ResourceObjectValidator::getKeyValidator() assumes that both the attributes and relationships validators are keyed validators. But one or both might not be.

It needs to only attempt to get a keyed validator from either one if they are keyed validators. If not, it should ignore them.