FluentValidation.AutoValidation icon indicating copy to clipboard operation
FluentValidation.AutoValidation copied to clipboard

SharpGrip FluentValidation AutoValidation is an extension of the FluentValidation library enabling automatic asynchronous validation in MVC controllers and minimal APIs (endpoints).

Results 10 FluentValidation.AutoValidation issues
Sort by recently updated
recently updated
newest added

Hi, I've decided to try out your package due to older one from FluentValidation being deprecated. But I've bumped into a issue where none of my validators were actually fired....

enhancement

Besided linking to the official FluentValidation DI documentation add some examples on how to register validators with the DI container.

documentation

resolve https://github.com/SharpGrip/FluentValidation.AutoValidation/issues/31

Current implementation checks if parameter type is class. This check fails if we use `ICollection` as parameter type. ASP.NET is able to deserialize to it, it is also possible to...

question

Hi, I think the code in TypeExtensions.cs ```csharp public static bool IsCustomType(this Type? type) { var builtInTypes = new[] { typeof(string), typeof(decimal), typeof(DateTime), typeof(DateTimeOffset), typeof(TimeSpan), typeof(Guid) }; return type !=...

enhancement

hi, i'm using rules with ErrorCode and ErrorMessage, example: ``` RuleFor(request => request.FirstName).NotNull() .WithErrorCode(errorCode) .WithMessage(errorMessage); ``` i would like that my validation has ErrorCode and errorMessage I'm using CustomResultFactory, find...

enhancement

enhancement
help wanted

Hello, I am workong on asp.net 6 with Simple Injector as DI container which works perfectly but when trying to use AutoValidation nothing is fired. `services.AddFluentValidationAutoValidation(configuration => { configuration.OverrideDefaultResultFactoryWith(); });...

I have a dotnet 8 MVC project I'm working with that uses binding that does define the source ([FromBody], [FromQuery]) and I have several hundred throughout the project like this...

enhancement