Skip to content

Commit bd283c3

Browse files
committed
Set ConvertValueInInvariantCulture
1 parent 894c385 commit bd283c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/OpenApiTests/ModelStateValidation/SocialMediaAccount.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public sealed class SocialMediaAccount : Identifiable<Guid>
8080
public string? Planet { get; set; }
8181

8282
[Attr]
83-
[Range(typeof(TimeSpan), "01:00", "05:00")]
83+
[Range(typeof(TimeSpan), "01:00", "05:00", ConvertValueInInvariantCulture = true)]
8484
public TimeSpan? NextRevalidation { get; set; }
8585

8686
[Attr]

0 commit comments

Comments
 (0)