Type-Safe Validation for .NET
A modern validation library using Roslyn source generators. Compile-time code generation, powerful analyzers with code fixers, async validation, validation chains, and conditional validation.
Open Source
.NET Standard 2.0+ / .NET 5+
Source Generated
See EasyValidate in Action
Watch this comprehensive tutorial to learn how to implement powerful validation in your .NET applications with EasyValidate.
Video Tutorial
📚 Learn by Example
⏱️ Step-by-step Guide
Quick Example
Implement IGenerate and add validation attributes - that's it!
User.cscsharp
Powerful Features
Everything you need for comprehensive, type-safe validation in your .NET applications
Source Generation
Zero runtime reflection. Roslyn source generator creates validation code at compile-time for maximum performance.
Roslyn Analyzers
19 built-in analyzers catch validation errors at compile-time with helpful diagnostics and error codes.
Code Fixers
Automatic code fixes for common issues like chain reordering, missing attributes, and type mismatches.
Validation Chains
Group related validations into named chains that execute together with proper type flow.
Conditional Validation
Skip validation dynamically using ConditionalMethod - execute validation only when conditions are met.
Async Validation
Full async/await support for database lookups, API calls, and other I/O-bound validation scenarios.
70+ Built-in Attributes
String, numeric, date, collection, and general validation attributes ready to use.
ValidationContext
Inject the parent model into custom attributes for cross-property and complex validation logic.
Parameter Validation
Validate method parameters with generated overloads that return validation results.
Ready to get started?
Add powerful validation to your .NET applications in minutes with our comprehensive documentation