Spring Projects Issues
Spring Projects Issues
**[Bob Tiernay](https://jira.spring.io/secure/ViewProfile.jspa?name=btiernay)** commented Okay, that makes a lot of sense. Thanks for explaining
**[Bob Tiernay](https://jira.spring.io/secure/ViewProfile.jspa?name=btiernay)** commented On second thought, shouldn't there be something in the Data REST stack that translates `ConstraintViolationException` s to proper 400 responses with a payload explaining the error? Right...
**[Andrea Ratto](https://jira.spring.io/secure/ViewProfile.jspa?name=aratto)** commented I would like to see this issue accepted and fixed: I refactored a controller to be a `@RepositoryRestController` and lost request validation without any notice. In my...
**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented I am not sure what you think should be accepted here. As I outlined in my [comment above](https://jira.spring.io/browse/DATAREST-593?focusedCommentId=116959&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-116959) this is basically working as expected. What exactly is...
**[Andrea Ratto](https://jira.spring.io/secure/ViewProfile.jspa?name=aratto)** commented Basically I think that `@Valid` should work on `@RequestMapping` methods, just like normal controllers. That is: ```java @RequestMapping(value = "/path", method = RequestMethod.POST) public post(@Valid @RequestBody Enitity...
**[Oliver Drotbohm](https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke)** commented You're not writing a controller with Spring Data REST, it's all internal. So besides the implementation aspect, what would you like to see happening by default? Currently...
**[Andrea Ratto](https://jira.spring.io/secure/ViewProfile.jspa?name=aratto)** commented Specifically I am updating our API to HAL, leveraging Spring Data Rest for reads, but providing all write methods with my custom implementation that involves sending events...
**[Andrea Ratto](https://jira.spring.io/secure/ViewProfile.jspa?name=aratto)** commented ERRATA: by ResourceAssembler I meant PersistentEntityResourceAssembler
**[Thibaud Lepretre](https://jira.spring.io/secure/ViewProfile.jspa?name=kakawait)** commented [Andrea Ratto](https://jira.spring.io/secure/ViewProfile.jspa?name=aratto) you can create your own `org.springframework.web.servlet.HandlerMapping` as **workaround** (what I did) in order to allow mutual cohabitation between SDR and `@RestController`
**[Andrea Ratto](https://jira.spring.io/secure/ViewProfile.jspa?name=aratto)** commented `@kakawait`: but then I would be without the PersistentEntityResourceAssembler