File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
third_party/dotnet/devtools/src/generator/Templates Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,9 @@ namespace {{rootNamespace}}
88 ///</summary >
99 public class DevToolsSessionDomains : OpenQA.Selenium.DevTools.DevToolsSessionDomains
1010 {
11- internal static readonly global::System.Text.Json.JsonSerializerOptions RequestOptions = new()
11+ internal static readonly global::System.Text.Json.JsonSerializerOptions JsonOptions = new()
1212 {
13- TypeInfoResolver = {{ protocolVersion }} JsonRequestSerializerContext.Default
14- };
15-
16- internal static readonly global::System.Text.Json.JsonSerializerOptions ResponseOptions = new()
17- {
18- TypeInfoResolver = {{ protocolVersion }} JsonResponseSerializerContext.Default
13+ TypeInfoResolver = {{ protocolVersion }} JsonSerializerContext.Default
1914 };
2015
2116{{ #each domains }}
@@ -57,12 +52,7 @@ namespace {{rootNamespace}}
5752 [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] // Placeholder in case nothing gets generated
5853{{ #each commands }}
5954 [global::System.Text.Json.Serialization.JsonSerializable(typeof({{ FullTypeName }} ))]
60- {{ /each }}
61- internal sealed partial class {{ protocolVersion }} JsonRequestSerializerContext : global::System.Text.Json.Serialization.JsonSerializerContext;
62-
63- [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] // Placeholder in case nothing gets generated
64- {{ #each commands }}
6555 [global::System.Text.Json.Serialization.JsonSerializable(typeof({{ FullResponseTypeName }} ))]
6656{{ /each }}
67- internal sealed partial class {{ protocolVersion }} JsonResponseSerializerContext : global::System.Text.Json.Serialization.JsonSerializerContext;
57+ internal sealed partial class {{ protocolVersion }} JsonSerializerContext : global::System.Text.Json.Serialization.JsonSerializerContext;
6858}
You can’t perform that action at this time.
0 commit comments