Skip to content

Commit 921e4a7

Browse files
committed
update c# petstore samples
1 parent f90249c commit 921e4a7

File tree

2 files changed

+2
-2
lines changed
  • samples/client/petstore/csharp

2 files changed

+2
-2
lines changed

samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Model/FormatTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public override int GetHashCode()
415415
Regex regex_String = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
416416
if (false == regex_String.Match(this._String).Success)
417417
{
418-
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _String, must match a pattern of " + regex_String, new [] { "_String" });
418+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _String, must match a pattern of /[a-z]/i.", new [] { "_String" });
419419
}
420420

421421
// _Byte (byte[]) pattern

samples/client/petstore/csharp/SwaggerClientWithPropertyChanged/src/IO.Swagger/Model/FormatTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public virtual void OnPropertyChanged(string propertyName)
438438
Regex regex_String = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
439439
if (false == regex_String.Match(this._String).Success)
440440
{
441-
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _String, must match a pattern of " + regex_String, new [] { "_String" });
441+
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _String, must match a pattern of /[a-z]/i.", new [] { "_String" });
442442
}
443443

444444
// _Byte (byte[]) pattern

0 commit comments

Comments
 (0)