Fluent validation
Fluent validation is an open source library for validating the models, which is free as of I am writing this article.
📢 📝 Last Updated: 25-March-2025
Why fluent validation?
If you already have used data annotation for validation, then you must be aware of the validation in .NET. So you might be thinking why do we need a fluent validation
then.
Fluent validation
helps you to separate validation logic from your models. That makes your code clean. If you have complex validation logic, then you want to define it separately rather than making your model unreadable.