Skip to content

Commit

Permalink
Merge pull request #30548 from gsmet/validation.xml
Browse files Browse the repository at this point in the history
Add a blurb about not supporting validation.xml in Quarkus
  • Loading branch information
gsmet authored Jan 24, 2023
2 parents 3affaf2 + 300e10d commit baa7f5c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/src/main/asciidoc/validation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,19 @@ In this case, it means `Book.id` must be `null` and `Book.title` must not be bla
will be validated for the `book` parameter of the `put` method.
In this case, it means `Book.id` must not be `null` and `Book.title` must not be blank.

== Limitations

=== META-INF/validation.xml

Configuring the `ValidatorFactory` using a `META-INF/validation.xml` file is *NOT* supported in Quarkus.

At the moment, Hibernate Validator does not expose an API to extract the information from this file
so that we could register the appropriate classes for reflection.

To configure the `ValidatorFactory`, use the exposed configuration properties and the CDI integration.

Consequently, the only way to define constraints in Quarkus is by annotating your classes.

[[configuration-reference]]
== Hibernate Validator Configuration Reference

Expand Down

0 comments on commit baa7f5c

Please sign in to comment.