Created
July 30, 2019 08:37
-
-
Save ntakouris/c67aafd25495111de16f52b12ad78362 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public CreateTagRequestValidator() | |
{ | |
RuleFor(x => x.TagName) | |
.NotEmpty() | |
.Matches("^[a-zA-Z0-9 ]*$"); // alphanumerics and space | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment