Skip to content

Commit c41db56

Browse files
authored
Update AbstractConstraintViolationListNormalizer.php
1 parent f99cc0a commit c41db56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Serializer/AbstractConstraintViolationListNormalizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ protected function getMessagesAndViolations(ConstraintViolationListInterface $co
6363
$violationData = [
6464
'propertyPath' => $this->nameConverter ? $this->nameConverter->normalize($violation->getPropertyPath(), $class, static::FORMAT) : $violation->getPropertyPath(),
6565
'message' => $violation->getMessage(),
66+
'code' => $violation->getCode(),
6667
];
6768

6869
$constraint = $violation->getConstraint();

0 commit comments

Comments
 (0)