Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning in Fluent Validation docs about double registering. Closes GH… #1043

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/guide/handlers/fluent-validation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Fluent Validation Middleware

::: warning
Wolverine's `UseFluentValidation()` does "type scanning" to discover validators unless you explicitly tell
Wolverine not to. Be careful to not double register validators through some other mechanism and Wolverine's. Do
note that Wolverine makes some performance optimizations around the `ServiceLifetime` of DI registrations
for validation that can be valuable in terms of performance.
:::

You will frequently want or need to validate the messages coming into your Wolverine system for correctness
or at least the presence of vital information. To that end, Wolverine has support for integrating the
popular [Fluent Validation](https://docs.fluentvalidation.net/en/latest/) library via an unobtrusive middleware strategy
Expand Down
Loading