RuleFor(x => x.SomeArrayProperty[0]).SetValidator(new WhateverValidator()).When(x => x.SomeArrayProperty.Length > 0).OverridePropertyName("whatever");
↧
RuleFor(x => x.SomeArrayProperty[0]).SetValidator(new WhateverValidator()).When(x => x.SomeArrayProperty.Length > 0).OverridePropertyName("whatever");