Dekiru.FluentValidation
1.0.9
Prefix Reserved
See the version list below for details.
dotnet add package Dekiru.FluentValidation --version 1.0.9
NuGet\Install-Package Dekiru.FluentValidation -Version 1.0.9
<PackageReference Include="Dekiru.FluentValidation" Version="1.0.9" />
paket add Dekiru.FluentValidation --version 1.0.9
#r "nuget: Dekiru.FluentValidation, 1.0.9"
// Install Dekiru.FluentValidation as a Cake Addin #addin nuget:?package=Dekiru.FluentValidation&version=1.0.9 // Install Dekiru.FluentValidation as a Cake Tool #tool nuget:?package=Dekiru.FluentValidation&version=1.0.9
Root validator for FluentValidation
This library provides an extension method that locates and registers all validators in your application, so you don't have to do it manually. A validator is any class that implements AbstractValidator<T>
, where T
is the type of the object to validate.
It also exposes a RootValidator
class that you can use to validate your objects, without having to know the specific validator for that object. Once materialized from the DI container, it can be used to validate any object that has a validator registered.
This is done by calling await myRootValidator.Validate(myObject)
or await myRootValidator.ValidateAndThrow(myObject)
. If no validator exists for the type, it is considered valid.
The default behavior is to not only use validators for the exact type of the object, but also for all its base types. This can be disabled by passing false
to the useBaseTypeValidators
parameter of either of the validation methods.
This library is built on top of FluentValidation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- FluentValidation (>= 11.9.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
-
net8.0
- FluentValidation (>= 11.9.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Dekiru.FluentValidation:
Package | Downloads |
---|---|
Dekiru.Conduit
A minimalist library for building pipelines |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
11.10.0 | 112 | 11/15/2024 | |
8.1.0 | 381 | 8/13/2024 | |
6.1.0 | 180 | 8/13/2024 | |
1.0.12 | 311 | 5/6/2024 | |
1.0.11 | 404 | 4/21/2024 | |
1.0.10 | 128 | 4/18/2024 | |
1.0.9 | 105 | 4/18/2024 | |
1.0.8 | 185 | 4/12/2024 | |
1.0.6 | 104 | 4/12/2024 | |
1.0.5 | 103 | 4/12/2024 | |
1.0.4 | 105 | 4/12/2024 | |
1.0.3 | 111 | 4/12/2024 | |
1.0.2 | 166 | 4/2/2024 | |
1.0.1 | 117 | 4/2/2024 | |
1.0.0 | 124 | 3/29/2024 |