Add validators from assemblies
nmakhmutov opened this issue · comments
Makhmutov Neil commented
In fluentvalidation you can add many validators just from assemblies. It's realy useful when you have a lot of validators in you project.
For instance:
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
services.AddValidatorsFromAssemblies(assemblies);
And then all you classes inherits from AbstractValidator<T>
should be added as validator in you project.
Please, could you add this functionality in your project?
enif.lee commented
Merged on https://www.nuget.org/packages/GrpcExtensions.AspNetCore.Validation/2.25.6
Thank you.