DependentValidation is a netstandard2.0 library that extends the System.ComponentModel.DataAnnotations with conditional attributes based on another property of the validated object.
The new attributes are the following:
- RequiredIf
- RequiredIfEmpty
- RequiredIfFalse...
More information