Skip to content

Commit

Permalink
Added note about validation on REST controllers
Browse files Browse the repository at this point in the history
Related to #254
  • Loading branch information
FroMage committed Nov 25, 2024
1 parent eecff35 commit 496842b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/advanced.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ for more information about form parameters and multi-part.

=== Validation

Note: This only applies to Renarde Controllers (not to regular non-Renarde REST endpoints).

You can place your usual {quarkus-guides-url}/validation[Hibernate Validation] annotations on the controller methods that receive user data, but
keep in mind that you have to check for validation errors in your method before you do any action that modifies your state.
This allows you to check more things than you can do with just annotations, with richer logic:
Expand Down

0 comments on commit 496842b

Please sign in to comment.