ArturRios.Validation
A thin, opinionated model-validation layer over FluentValidation that returns error arrays or Output envelopes.
FluentValidation gives you a ValidationResult; applications want either a list of messages or a result
envelope. ArturRios.Validation closes that gap.
What you get
| Type | What it does |
|---|---|
FluentValidator<T> | Base validator — subclass it, declare RuleFor(...) rules in the constructor, and get error and Output helpers for free. |
IFluentValidator<T> | Abstraction over FluentValidator<T> (extending the FluentValidation IValidator<T>) for DI and testing. |
Validation results come back as a plain string[], or as a ProcessOutput / DataOutput<T> from
ArturRios.Output — with optional stripping of the quotes and periods FluentValidation puts
in its default messages.
Install
dotnet add package ArturRios.Validation
Family dependencies
ArturRios.Output3.3.1
Third-party: FluentValidation.