FluentValidation

A .NET library for writing validation rules as classes with a fluent API, such as RuleFor(x => x.Price).GreaterThan(0).

In more detail

It suits rules with conditions or composition that attributes cannot express, and the rules can be reused outside HTTP. Register validators with dependency injection and run them before the application service.

Related terms

Taught in

References