| Clean Architecture Toolkit for .NET | |||||
|
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications. It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design. |
|
||||
|
| HOME | MODULE OVERVIEW | DEMO | CAT.VALIDATORS | |
|||||
Code Reference
» Cat.Validators.Abstractions Assembly
Cat.Validators.Abstractions Namespace
Defines the contracts for validation: validators, the builders you describe rules with, the rules themselves, and the processor that runs them and returns an ICatResponse.
| Interfaces | |
|---|---|
| ICatValidator<TModel> | Describes the rules for one model type. Implement it once per model. The module finds and registers it for you. |
| ICatValidatorBuilder<TModel> | Collects the rules of a validator. You get one in Build(ICatValidatorBuilder<TModel>). |
| ICatValidatorError | One validation failure. |
| ICatValidatorModelRule<TModel> | A rule that checks a model and returns the failures it finds. |
| ICatValidatorModelRuleBuilder<TModel> | Adds rules that look at the whole model. |
| ICatValidatorProcessor | Single entry point for validating a model. It finds the validator for the model, runs its rules and returns the outcome as a response. |
| ICatValidatorPropertyRule<TModel,TProperty> | A rule that checks one property of a model. |
| ICatValidatorPropertyRuleBuilder<TModel,TProperty> | Adds rules for one property. The built-in rules are extension methods on this interface. |
| ICatValidatorPropertyRuleOptionsBuilder<TModel,TProperty> | Sets options on the rule you just added, like a condition, a field name or a message. |