Skip to content

Commit

Permalink
validation filter note
Browse files Browse the repository at this point in the history
  • Loading branch information
kliushnichenko committed Sep 9, 2024
1 parent d42916f commit ae41127
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/asciidoc/modules/avaje-validator.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ import io.jooby.validation.BeanValidator
}
----

[IMPORTANT]
====
Please note, if you are mixing both approaches (MVC/scripts), it's better to avoid using a filter,
as it may lead to double validation on MVC routes. In this case,
it's recommended to use the handler version (see below).
====

`BeanValidator.validate()` behaves identically to validation in MVC routes.
It also supports validating list, array, and map of beans.

Expand Down
7 changes: 7 additions & 0 deletions docs/asciidoc/modules/hibernate-validator.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ import io.jooby.validation.BeanValidator
}
----

[IMPORTANT]
====
Please note, if you are mixing both approaches (MVC/scripts), it's better to avoid using a filter,
as it may lead to double validation on MVC routes. In this case,
it's recommended to use the handler version (see below).
====

`BeanValidator.validate()` behaves identically to validation in MVC routes.
It also supports validating list, array, and map of beans

Expand Down

0 comments on commit ae41127

Please sign in to comment.