I have deployed a custom SPI into the Quarkus distribution of Keycloak.
I noticed that lots of features that would work in a standalone Quarkus application (with autoconfiguration), don’t work in a custom SPI.
In this case, I’m not able to validate a REST request body with
jakarta.validation
.
Annotations like
@Valid
, and
@NotNull
are ignored.
Tried to inject a
Validator
object manually, but such a bean does not exist.
Also tried to call
Validation.buildDefaultValidatorFactory()
but it says
“jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath”
.
Is there any solution to this?
thanks!