Closed
Description
Description
The validation
middleware throws Symfony\Component\Messenger\Exception\ValidationFailedException
s. You can map them to a 400 status code, but violations won’t be part of the response because the ProblemNormalizer
will only consider Symfony\Component\Validator\Exception\ValidationFailedException
.
Would it be possible to handle Symfony\Component\Messenger\Exception\ValidationFailedException
the same way, so that a conversion step isn’t needed? Or should the ValidationMiddleware
throw Symfony\Component\Validator\Exception\ValidationFailedException
s?