You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
I quickly solved it this way as any exception gets turned in to an error in my code
I extended Tobscure\JsonApi\Document and overwrote the toArray() function
publicfunctiontoArray()
{
// The members data and errors MUST NOT coexist in the same document.if (!empty($this->errors)) {
$this->data = null;
$this->links = null;
}
returnparent::toArray();
}
The members data and errors MUST NOT coexist in the same document.
see http://jsonapi.org/format/#document-top-level
I quickly solved it this way as any exception gets turned in to an error in my code
I extended
Tobscure\JsonApi\Document
and overwrote the toArray() functionIdeally this gets combined with #130
The text was updated successfully, but these errors were encountered: