Skip to content

Commit

Permalink
Original response can also be sent with the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Aug 19, 2015
1 parent 31442a5 commit 3c98c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/JsonApiMessageValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c98c59

Please sign in to comment.