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

Support validating values #24

Open
DamianEdwards opened this issue Mar 6, 2022 · 0 comments
Open

Support validating values #24

DamianEdwards opened this issue Mar 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@DamianEdwards
Copy link
Owner

Add support for validating a value by accepting the value and a set of ValidationAttributes to validate with. This would use the Validator.TryValidateValue method.

public static class MiniValidator
{
+public static bool TryValidateValue(object value, IEnumerable<ValidationAttribute> validationAttributes, out Dictionary<string, string[]> validationErrors);
}
@DamianEdwards DamianEdwards added the enhancement New feature or request label Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant