MinimalHelpers icon indicating copy to clipboard operation
MinimalHelpers copied to clipboard

IValidationService interface in MinimalHelpers.Validation.Abstractions

Open N1K0232 opened this issue 11 months ago • 1 comments

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

N1K0232 avatar Feb 04 '25 22:02 N1K0232

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.

marcominerva avatar Feb 05 '25 08:02 marcominerva

Now that .NET 10 supports buil-in validation with Data Annotation, the package MinimalHelpers.Validation is no longer necessary and has been deprecated.

marcominerva avatar Nov 13 '25 10:11 marcominerva