IValidationService interface in MinimalHelpers.Validation.Abstractions
I was thinking about the use of an interface for the input validation that can be instantiated by two different types:
- FluentValidationService
- MiniValidationService
The service will be registered in the dependency injection system and will depend on which kind of validator we need.
Actually I'm unable to provide a valid example, but my idea is basically to provide only one validator filter that will depend on the instance of the validation service. That will simplify the structure of the library.
In case I can work on this issue and send a PR, because actually it's easier for me to show what I'm talking about
It would be great if you can provide the implementation, but keep in mind that having two separate libraries is important, because otherwise, even if I use data annotations validation, I am forced to also have a dependency on FluentValidation in my project.
Now that .NET 10 supports buil-in validation with Data Annotation, the package MinimalHelpers.Validation is no longer necessary and has been deprecated.