FriendsOfSymfony/FOSRestBundle — pull request #467 by tystr (2013-06-04 05:45:44+00:00)
Title: [WIP] Add validator support to the request body converter

This PR adds the ability to optionally validate the deserialized object in the request body converter. Validation errors returned by the validator are set as a controller argument, the name of which is configurable. Note: this alters how the request body converter is currently configured

Example:
```PHP
public function putPostAction(Post $post, ConstraintViolationListInterface $validationErrors)
{
if (count($validationErrors) > 0) {
// handle validation errors
}
// ...
}
```

Still left to do:
- [ ] Add tests