[Required]
public string? Description { get; set; }
I am using <DataAnnotationsValidator />
I have the above property in a class and validating the model. Sometimes depending on some condition the Description field may not be a required field, how to remove the validation in that case?
Is it a way to programmatically remove the required attribute depending on the conditions?