diff --git a/src/Constraint/JsonValueMatchesSchema.php b/src/Constraint/JsonValueMatchesSchema.php index 045f5c2..c1d28ef 100644 --- a/src/Constraint/JsonValueMatchesSchema.php +++ b/src/Constraint/JsonValueMatchesSchema.php @@ -70,7 +70,7 @@ protected function additionalFailureDescription($other): string $validator->check($other, $this->schema); return implode("\n", array_map(function ($error) { - return $error['message']; + return sprintf("[%s] %s", $error['property'], $error['message']); }, $validator->getErrors())); }