I have a client requirement to build a dynamic form. I am building the form using a list of the following:
Is this possible with FluentValidation?
public class FieldViewModel
{
public string FieldName { get; set; }
public string FieldValue { get; set; }
public bool IsDate { get; set; }
public int? MaxLength { get; set; }
}
What I want to do is define a validator such that FieldViewModel.FieldValue is validated against FieldViewModel.MaxLength and FieldViewModel.IsDateIs this possible with FluentValidation?