smallrye-graphql
smallrye-graphql copied to clipboard
Add BeanValidation Annotations as `@constraint` Directives
Many BeanValidation annotations could be mapped to @constraint directives that are specified, e.g., by graphql-constraint-directive. This would allow clients to validate user input directly in the frontend... even while typing... without repeating the constraints already defined in the backend model.