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

edison-validation missing a lot of Validation Exceptions in Controller Advice #100

Open
BeneStem opened this issue Mar 22, 2018 · 0 comments

Comments

@BeneStem
Copy link
Contributor

Hey guys,

you should add the following controllerAdvices to validation module:

BadRequestException
ConstraintViolationException

extends ResponseEntityExceptionHandler
=> overwrite handleMethodArgumentNotValid method

It would also be nice to not only provide a content-type application/json response but also a text/html response for html requests :)

Thanks!
Best,
/ben

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

No branches or pull requests

1 participant