Skip to content

Commit

Permalink
[dotnet] Add Dictionary<string, string> as well-known types for json …
Browse files Browse the repository at this point in the history
…serialization
  • Loading branch information
nvborisenko committed Nov 6, 2024
1 parent e8c0435 commit 9f554da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dotnet/src/webdriver/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ private static Dictionary<string, object> ConvertParametersFromJson(string value
[JsonSerializable(typeof(ulong))]
[JsonSerializable(typeof(short))]
[JsonSerializable(typeof(ushort))]

[JsonSerializable(typeof(string))]

// Selenium WebDriver types
Expand All @@ -164,7 +163,6 @@ private static Dictionary<string, object> ConvertParametersFromJson(string value

// Selenium Dictionaries, primarily used in Capabilities
[JsonSerializable(typeof(Dictionary<string, object>))]

[JsonSerializable(typeof(Dictionary<string, bool>))]
[JsonSerializable(typeof(Dictionary<string, byte>))]
[JsonSerializable(typeof(Dictionary<string, sbyte>))]
Expand All @@ -180,5 +178,6 @@ private static Dictionary<string, object> ConvertParametersFromJson(string value
[JsonSerializable(typeof(Dictionary<string, ulong>))]
[JsonSerializable(typeof(Dictionary<string, short>))]
[JsonSerializable(typeof(Dictionary<string, ushort>))]
[JsonSerializable(typeof(Dictionary<string, string>))]
internal partial class CommandJsonSerializerContext : JsonSerializerContext;
}

0 comments on commit 9f554da

Please sign in to comment.