Skip to content
This repository was archived by the owner on Oct 31, 2020. It is now read-only.

Run server-side JSR-380 bean validation for RPC method patameters #215

Closed
vlukashov opened this issue Jan 8, 2019 · 0 comments
Closed
Assignees
Milestone

Comments

@vlukashov
Copy link
Contributor

When defining parameters of a Vaadin Connect service method, I want the Vaadin Connect runtime to apply the bean validation rules based on the JSR-380 annotations, so that I can express the business constraints on the parameters using annotations like @NotNull and have them checked for me.

DoD:

  • All 22 built-in JSR-380 constraints are supported:
    • validation runs on the backend
    • if any parameter does not pass validation, that is a ValidationError (passed to the client)
  • if there are several validation errors in the same call, all of them passed to the client in the same response
  • bean sub properties are validated (recursively)

child of #169

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

No branches or pull requests

3 participants