Get bean validation to work #1425
Unanswered
gabriel-hoff-vectorsolutions
asked this question in
Q&A
Replies: 1 comment
-
|
For me it worked when I annotated my Controller with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use
@Validor@Validatedannotations in mutations? For example:A bit of context:
I understand that DGS supports graphql-java-extended-validation.
Still, my team will be migrating existing REST APIs to GraphQL, and everything is being validated using bean validation (via Hibernate validator). I'm trying to assess the complexity of the migration, and not having to switch to something like
graphql-java-extended-validationfrom the get-go would probably help a lot.Edit:
Based on existing discussions, it seems that used to work at some level (unless these people were getting false positives):
Beta Was this translation helpful? Give feedback.
All reactions