Kitpymes.Core.Validations.FluentValidation
3.0.0
dotnet add package Kitpymes.Core.Validations.FluentValidation --version 3.0.0
NuGet\Install-Package Kitpymes.Core.Validations.FluentValidation -Version 3.0.0
<PackageReference Include="Kitpymes.Core.Validations.FluentValidation" Version="3.0.0" />
<PackageVersion Include="Kitpymes.Core.Validations.FluentValidation" Version="3.0.0" />
<PackageReference Include="Kitpymes.Core.Validations.FluentValidation" />
paket add Kitpymes.Core.Validations.FluentValidation --version 3.0.0
#r "nuget: Kitpymes.Core.Validations.FluentValidation, 3.0.0"
#:package Kitpymes.Core.Validations.FluentValidation@3.0.0
#addin nuget:?package=Kitpymes.Core.Validations.FluentValidation&version=3.0.0
#tool nuget:?package=Kitpymes.Core.Validations.FluentValidation&version=3.0.0
Validaciones para multiples proveedores
📋 Requerimientos
Visual Studio 2026 o superior
NET TargetFramework = net10.0
SDK de .NET = 10.0.x
C# = 12
Conocimientos sobre Inyección de Dependencias
🔧 Instalación
Se puede instalar usando el administrador de paquetes Nuget o CLI dotnet.
Nuget
Install-Package Kitpymes.Core.Validations
CLI dotnet
dotnet add package Kitpymes.Core.Validations
⌨️ Uso
public sealed class CreateOrderValidator : Validator<CreateOrder>
{
public CreateOrderValidator()
{
RuleFor(x => x.Customer).Required().MaxLength(100);
RuleForEach(x => x.Lines).SetValidator(new LineValidator());
}
}
services.LoadValidations(o => o.WithAssemblies(typeof(CreateOrderValidator).Assembly));
ValidateAsync devuelve un Result con un FieldError por campo (lines.0.quantity, Validations.Mayor). La API antigua (Validator.AddRule, ValidationsException, el middleware) se quitó en la 3.0.0: la guía de migración está en las notas de la versión. Más detalle en el README.
🛠️ Construido con
- NET Core - Framework de trabajo
- C# - Lenguaje de programación
- Inserción de dependencias - Patrón de diseño de software
- MSTest - Pruebas unitarias
- Nuget - Manejador de dependencias
- Visual Studio - Entorno de programacion
- FluentValidation - Proveedor de validaciones
✒️ Autores
- Sebastian R Ferrari - Trabajo Inicial - kitpymes
📄 Licencia
- Este proyecto está bajo la Licencia LICENSE
🎁 Gratitud
- Este proyecto fue diseñado para compartir, creemos que es la mejor forma de ayudar 📢
- Cada persona que contribuye será invitada a tomar una 🍺
- Gracias a todos! 🤓
Kitpymes 😊
| 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. |
-
net10.0
- FluentValidation (>= 11.11.0)
- Kitpymes.Core.Validations.Abstractions (>= 3.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 92 | 11/24/2026 |
| 2.3.0 | 107 | 11/24/2026 |
| 2.2.0 | 106 | 11/24/2026 |
| 2.1.0 | 114 | 11/23/2026 |
| 2.0.0 | 114 | 11/20/2026 |
| 1.0.8 | 1,015 | 7/20/2022 |
| 1.0.7 | 757 | 6/25/2021 |
| 1.0.6 | 702 | 6/22/2021 |
| 1.0.5 | 728 | 6/15/2021 |
| 1.0.4 | 721 | 6/14/2021 |
| 1.0.3 | 854 | 1/11/2021 |
| 1.0.2 | 866 | 1/9/2021 |
| 1.0.1 | 944 | 8/15/2020 |
| 1.0.0 | 847 | 6/17/2020 |