C
C#2y ago
camel

❔ FluentValidation call all Validators

public RegisterCmdValidator()
{
RuleFor(qry => qry.Username)
.SetValidator(new UsernameValidator());

RuleFor(qry => qry.Password)
.SetValidator(new PasswordValidator());
}
public RegisterCmdValidator()
{
RuleFor(qry => qry.Username)
.SetValidator(new UsernameValidator());

RuleFor(qry => qry.Password)
.SetValidator(new PasswordValidator());
}
I have a validator that validates password and username. However, on if both are invalid, only the password errors are displayed in the exception. How can I force FluentValidation to run both validators?
3 Replies
Anu6is
Anu6is2y ago
how are you displaying your errors?
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server