0

i want to validate the request and send error messages and send error messages of each field in symfony. Is that possible ?

1 Answer 1

1

You can do it like in this https://symfony.com/doc/current/validation/raw_values.html.

Or you can use FOSRestBundle. With this bundle you can use the ParamConverter with a validator option and then the errors will be injected to your controller.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.