diff --git a/src/Utils/JsonApiMessageValidator.php b/src/Utils/JsonApiMessageValidator.php index 8aeb938..d984399 100644 --- a/src/Utils/JsonApiMessageValidator.php +++ b/src/Utils/JsonApiMessageValidator.php @@ -162,7 +162,7 @@ protected function getValidationErrorDocument(MessageInterface $message, array $ { $errorDocument = $this->getErrorDocument($errors); if ($this->includeOriginalMessage) { - $errorDocument->setMeta(["original" => $message->getBody()]); + $errorDocument->setMeta(["original" => json_decode($message->getBody(), true)]); } return $errorDocument;