Relevox.FluentValidation
1.7.0
dotnet add package Relevox.FluentValidation --version 1.7.0
NuGet\Install-Package Relevox.FluentValidation -Version 1.7.0
<PackageReference Include="Relevox.FluentValidation" Version="1.7.0" />
<PackageVersion Include="Relevox.FluentValidation" Version="1.7.0" />
<PackageReference Include="Relevox.FluentValidation" />
paket add Relevox.FluentValidation --version 1.7.0
#r "nuget: Relevox.FluentValidation, 1.7.0"
#:package Relevox.FluentValidation@1.7.0
#addin nuget:?package=Relevox.FluentValidation&version=1.7.0
#tool nuget:?package=Relevox.FluentValidation&version=1.7.0
Relevox.FluentValidation
GitHub · Validation guide · Changelog
A FluentValidation pipeline behaviour for Relevox, the source-generated mediator with MediatR 12's handler signatures. It runs the validators registered for a request before its handler and throws if any fails. The build gives it only to the requests it found a validator for, so a request without one pays nothing for it.
dotnet add package Relevox.FluentValidation
services.AddValidatorsFromAssembly(typeof(PlaceOrder).Assembly);
services.AddRelevox(options => options.AddValidation());
FluentValidation's ValidationException is thrown with every failure. To throw an exception of your own, derive
from ValidationBehavior<TRequest, TResponse>, override CreateException, and pass the class to
AddValidation(typeof(YourValidation<,>)).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- FluentValidation (>= 12.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Relevox (>= 1.7.0)
-
net11.0
- FluentValidation (>= 12.0.0)
- Relevox (>= 1.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.