Validation #324
Replies: 3 comments 1 reply
-
MADEDefines an IValidator FluentValidationDefines IValidator MVVM ToolkitDefines ObservableValidator |
Beta Was this translation helpful? Give feedback.
-
Proposed design:
public interface IValidator<in T> : IValidator {
ValueTask<IEnumerable<ValidationResult>> ValidateAsync(T instance, ValidationContext? context=null, CancellationToken cancellation = new CancellationToken());
}
Extensions.Validation Extensions.Validation.Fluent Extensions.Validation.CommunityToolkit |
Beta Was this translation helpful? Give feedback.
-
Open question: Should we have just a non generic Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
-
Two scenarios for validation:
There are a number of existing validation related projects that should be considered:
Beta Was this translation helpful? Give feedback.
All reactions