protected function createConstraintViolationResponse(ConstraintViolationListInterface $violationList)
    {
        $errors = $this->validationErrorFormatter->groupViolationsByField($violationList);

        return $this->createJsonResponse(
            ['errors' => $errors],
            422
        );
    }