Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to run specific rule sets #56

Open
yzinc opened this issue Feb 22, 2025 · 1 comment
Open

Add ability to run specific rule sets #56

yzinc opened this issue Feb 22, 2025 · 1 comment

Comments

@yzinc
Copy link

yzinc commented Feb 22, 2025

Hi! Currently we are limited to run rule sets during autovalidation. I believe we can add specific attribute for such purposes.
I came up with, following naming pattern, next attribute

    [AttributeUsage(AttributeTargets.Parameter)]
    public class AutoValidateSpecificAttribute : Attribute
    {
        public string[] RuleSets { get; }

        public AutoValidateSpecificAttribute(params string[] ruleSets)
        {
            RuleSets = ruleSets;
        }
    }

and then get and use those rulesets in filter.

@yzinc
Copy link
Author

yzinc commented Feb 22, 2025

I've created PR with my view on it. Maybe I should have done it without separate issue ticket. Sorry about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant