Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPR-13183 Send BindingResult Errors in ResponseEntityExceptionHandler #831

Closed
wants to merge 1 commit into from

Conversation

bonhamcm
Copy link

@bonhamcm bonhamcm commented Jul 1, 2015

When a RESTful API method returns a 400 status due to validation errors,
those errors are not returned. This commit changes the handleBindException()
and handleMethodArgumentNotValid() methods to return the BindingResult
errors as the response entity.

Issue: SPR-13183

I have signed the SpringSource CLA.

When a RESTful API method returns a 400 status due to validation errors,
those errors are not returned. This commit changes the handleBindException()
and handleMethodArgumentNotValid() methods to return the BindingResult
errors as the response entity.

Issue: SPR-13183
@bonhamcm bonhamcm changed the title Send BindingResult Errors in ResponseEntityExceptionHandler SPR-13183 Send BindingResult Errors in ResponseEntityExceptionHandler Jul 1, 2015
@rstoyanchev
Copy link
Contributor

Thanks for the PR but as discussed in JIRA this is expected to be an application choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants