© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
4 replies
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FluentValidation validators not registering in DI despite using extension method
C#CC# / help
3mo ago
❔ FluentValidation DTO
C#CC# / help
3y ago
❔ FluentValidation help
C#CC# / help
4y ago
ProblemDetails and FluentValidation
C#CC# / help
3y ago