Skip to content

Add ability to run specific rule sets #56

Description

@yzinc

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions