Skip to content

Add ability to run specific rule sets #56

@yzinc

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.

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