Skip to content

Commit

Permalink
update c# petstore samples
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Jul 14, 2017
1 parent f90249c commit 921e4a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatable
Regex regex_String = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
if (false == regex_String.Match(this._String).Success)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _String, must match a pattern of " + regex_String, new [] { "_String" });
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _String, must match a pattern of /[a-z]/i.", new [] { "_String" });
}

// _Byte (byte[]) pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatable
Regex regex_String = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
if (false == regex_String.Match(this._String).Success)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _String, must match a pattern of " + regex_String, new [] { "_String" });
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _String, must match a pattern of /[a-z]/i.", new [] { "_String" });
}

// _Byte (byte[]) pattern
Expand Down

0 comments on commit 921e4a7

Please sign in to comment.