aldettinger commented on a change in pull request #3572: URL: https://github.com/apache/camel-quarkus/pull/3572#discussion_r813675573
########## File path: docs/modules/ROOT/pages/reference/extensions/bean-validator.adoc ########## @@ -38,3 +38,28 @@ Or add the coordinates to your existing project: ---- Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. + +== Usage + +=== Configuring the ValidatorFactory + +Implementation of this extension leverages https://quarkus.io/guides/validation[Quarkus extension]. + +Therefore it is not possible to configure ValidatorFactory by Camel's properties ('constraintValidatorFactory`, `messageInterpolator`, `traversableResolver`, `validationProviderResolver` and `validatorFactory`). + +You can configure ValidatorFactory by creation of beans which will be injected into the default validatorFactory (created by Quarkus). +See https://quarkus.io/guides/validation#hibernate-validator-extension-and-cdi[documentation] for more information. + +=== Custom validation groups in native mode + +For native mode, it is necessary to register definitions of custom validation groups for reflection. +To do this, annotate interface definition with `@RegisterForReflection`. Review comment: Is it forcely @RegisterForReflection ? Or could it also work with `quarkus.camel.native.reflection` ? If all works, maybe the camel quarkus reflection doc `xref:user-guide/native-mode.adoc#reflection` can be pointed to like [here](https://camel.apache.org/camel-quarkus/2.7.x/reference/extensions/protobuf.html) and [here](https://github.com/apache/camel-quarkus/blob/main/extensions/protobuf/runtime/src/main/doc/configuration.adoc#serializedeserialize-java-beans-using-json-fields-representation) ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
