MeliorValidation 1.0.1
dotnet add package MeliorValidation --version 1.0.1
NuGet\Install-Package MeliorValidation -Version 1.0.1
<PackageReference Include="MeliorValidation" Version="1.0.1" />
<PackageVersion Include="MeliorValidation" Version="1.0.1" />
<PackageReference Include="MeliorValidation" />
paket add MeliorValidation --version 1.0.1
#r "nuget: MeliorValidation, 1.0.1"
#:package MeliorValidation@1.0.1
#addin nuget:?package=MeliorValidation&version=1.0.1
#tool nuget:?package=MeliorValidation&version=1.0.1
MeliorValidation
A fast, reflection-free, expression-tree based validation framework for .NET with a FluentValidation-like developer experience.
public class UserValidator : AbstractValidator<User>
{
public UserValidator()
{
RuleFor(x => x.Name).NotEmpty().MinimumLength(3).MaximumLength(100);
RuleFor(x => x.Email).NotEmpty().EmailAddress();
RuleFor(x => x.Age).InclusiveBetween(18, 65);
}
}
var result = new UserValidator().Validate(user);
if (!result.IsValid)
{
foreach (var error in result.Errors)
{
Console.WriteLine(error.ErrorMessage);
}
}
See the project repository for full documentation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on MeliorValidation:
| Package | Downloads |
|---|---|
|
MeliorValidation.DependencyInjectionExtensions
Microsoft.Extensions.DependencyInjection integration for MeliorValidation: assembly scanning and service registration helpers. |
|
|
MeliorValidation.AspNetCore
ASP.NET Core integration for MeliorValidation: MVC filters, Minimal API endpoint filters, and automatic model validation with ProblemDetails. |
|
|
MeliorValidation.Testing
Test-assertion helpers for MeliorValidation: fluent TestValidate/ShouldHaveValidationErrorFor extensions for unit testing validators. |
GitHub repositories
This package is not used by any popular GitHub repositories.