update c# petstore samples

This commit is contained in:
wing328 2017-07-14 15:49:03 +08:00
parent f90249caf4
commit 921e4a779e
2 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ namespace IO.Swagger.Model
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

View File

@ -438,7 +438,7 @@ namespace IO.Swagger.Model
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