Stack Explorer

FluentValidation

validation

Validation library with fluent API for .NET

1.5M/week → Stable

Features

validationfluentrulesclean

Pros and Cons

Ventajas

  • + Fluent and expressive API
  • + Reusable validators
  • + ASP.NET Core integration
  • + Customizable messages
  • + Conditional validation

Desventajas

  • - Validation separated from model
  • - More code than Data Annotations
  • - Initial learning curve

Use Cases

  • CQRS command validation
  • REST APIs with validation
  • Complex forms
  • Clean Architecture
  • Domain validation

Tecnologías Relacionadas

Compatible with

Related