Skip to content

Commit d6e53ba

Browse files
authored
Merge pull request #3524 from kliushnichenko/docs/validation-filter-notice
validation filter note
2 parents d42916f + ae41127 commit d6e53ba

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

docs/asciidoc/modules/avaje-validator.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ import io.jooby.validation.BeanValidator
167167
}
168168
----
169169

170+
[IMPORTANT]
171+
====
172+
Please note, if you are mixing both approaches (MVC/scripts), it's better to avoid using a filter,
173+
as it may lead to double validation on MVC routes. In this case,
174+
it's recommended to use the handler version (see below).
175+
====
176+
170177
`BeanValidator.validate()` behaves identically to validation in MVC routes.
171178
It also supports validating list, array, and map of beans.
172179

docs/asciidoc/modules/hibernate-validator.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ import io.jooby.validation.BeanValidator
130130
}
131131
----
132132

133+
[IMPORTANT]
134+
====
135+
Please note, if you are mixing both approaches (MVC/scripts), it's better to avoid using a filter,
136+
as it may lead to double validation on MVC routes. In this case,
137+
it's recommended to use the handler version (see below).
138+
====
139+
133140
`BeanValidator.validate()` behaves identically to validation in MVC routes.
134141
It also supports validating list, array, and map of beans
135142

0 commit comments

Comments
 (0)