C#
C#

help

Root Question Message

Mint
Mint12/22/2022
❔ FluentValidation call all Validators

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?
Anu6is
Anu6is12/22/2022
how are you displaying your errors?
AntonC
AntonC12/22/2022
that seems to be the default
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy