nelmio/NelmioApiDocBundle — pull request #512 by bezhermoso (2014-09-10 00:33:49+00:00)
Title: FOSRest integration: Form errors format [WIP]

```php

/**
* @ApiDoc(output={"class" = "FooBund\Form\UserType", "form_errors" = true})
*/
```

Documents the output of https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Resources/doc/2-the-view-layer.md#forms-and-views

This will be typically used with the Swagger integration, specifically when defining an alternate response model for validation errors:

```php

/**
* @ApiDoc(resonseMap={
* 400 = {"class" = "FooBund\Form\UserType", "form_errors" = true}
* })
*/
```

### TODO

* [x] Implementation
* [ ] Unit tests