Skip to content

Commit 0d8f906

Browse files
committed
Apply double converter directly to RemoteValue.Number
1 parent 45ecae9 commit 0d8f906

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dotnet/src/webdriver/BiDi/Modules/Script/RemoteValue.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// under the License.
1818
// </copyright>
1919

20+
using OpenQA.Selenium.BiDi.Communication.Json.Converters;
2021
using System;
2122
using System.Collections.Generic;
2223
using System.Text.Json;
@@ -91,7 +92,7 @@ public static implicit operator string(RemoteValue remoteValue)
9192
throw new BiDiException("Cannot convert .....");
9293
}
9394

94-
public record Number(double Value) : PrimitiveProtocolRemoteValue;
95+
public record Number([property: JsonConverter(typeof(DoubleConverter))] double Value) : PrimitiveProtocolRemoteValue;
9596

9697
public record Boolean(bool Value) : PrimitiveProtocolRemoteValue;
9798

0 commit comments

Comments
 (0)