-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
SmallRye GraphQL and Hibernate Validator not works together in native #13777
Comments
Small additional. Native app not fail on qurkus version 1.9.2 |
Hi @Andro999b - Thanks for this. So it does work fine in jvm mode ? |
@phillip-kruger Yes JVM not fail with |
Can you share your pom.xml ? |
I am using gradle kotlin extension for this project:
also theris a link in description on archive with small project to reproduce this. |
Thanks. I will look at this a.s.a.p |
@phillip-kruger on Quarkus, you shouldn't build a You can get them via CDI injection: they are proper beans. |
@gsmet - Thanks for the tip. I'll have a look a.s.a.p |
Ok I have changed the smallrye code to do a lookup rather than building it. see smallrye/smallrye-graphql#565 I will release a new version of SmallRye and pull it into Quarkus |
Thanks @phillip-kruger! |
@phillip-kruger please add the backport label when you create the PR. I might release a 1.10.4.Final at some point. |
Describe the bug
add
hibernate-validator
andsmallrye-graphql
Set
quarkus.smallrye-graphql.validation.enabled
to trueobserve that hibernate validations doesnot runs and native app fails with exceptions
Expected behavior
Expect that 'smallrye-graphql' use 'hibernate-validator' and native app not fail
Actual behavior
hibernate validations not runs
To Reproduce
https://drive.google.com/file/d/1TzqBt3o7EYiK9l0jWba9SNBG2wkG-AgQ/view?usp=sharing
Steps to reproduce the behavior:
Configuration
Screenshots
Environment (please complete the following information):
uname -a
orver
:Linux andrii-PC 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
java -version
:mvnw --version
orgradlew --version
):The text was updated successfully, but these errors were encountered: