I\'m using Symfony2 forms to validate POST and PUT requests to an API. The form handles binding the request data to the underlying entity and then validating the entity. Eve
You can take getErrorsAsString method as an example to get the functionality you want. Also you have to set invalid_message option on the form field to change This value is invalid message.