You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Initializes a new instance of the <see cref="OpenApiTest"/> class using the provided HttpClient. Uses a default instance of <see cref="IOpenApiJsonSerializer"/> for serialization.</summary>
25
+
public %CLASS%(global::System.Net.Http.HttpClient httpClient)
26
+
{
27
+
HttpClient = httpClient;
28
+
serializer = new OpenApiJsonSerializer();
29
+
}
30
+
31
+
/// <summary>Initializes a new instance of the <see cref="OpenApiTest"/> class using the provided HttpClient and JsonSerializerOptions. Uses an instance of <see cref="IOpenApiJsonSerializer"/> configured with the provided <see cref="System.Text.Json.JsonSerializerOptions"/> for serialization.</summary>
32
+
public %CLASS%(global::System.Net.Http.HttpClient httpClient, global::System.Text.Json.JsonSerializerOptions jsonSettings)
33
+
{
34
+
HttpClient = httpClient;
35
+
serializer = new OpenApiJsonSerializer(jsonSettings);
36
+
}
20
37
21
-
/// <summary>Options for the serializer used to create API objects.</summary>
/// <summary>Initializes a new instance of the <see cref="OpenApiTest"/> class using the provided HttpClient. Uses a default instance of <see cref="IOpenApiJsonSerializer"/> for serialization.</summary>
24
59
public %CLASS%(global::System.Net.Http.HttpClient httpClient)
25
-
: this(httpClient, new global::System.Text.Json.JsonSerializerOptions
26
-
{
27
-
PropertyNameCaseInsensitive = true,
28
-
Converters =
29
-
{
30
-
new global::System.Text.Json.Serialization.JsonStringEnumConverter()
31
-
}
32
-
})
33
60
{
61
+
HttpClient = httpClient;
62
+
serializer = new OpenApiJsonSerializer();
34
63
}
35
64
36
-
protected %CLASS%() : this(default!, default!)
65
+
/// <summary>Initializes a new instance of the <see cref="OpenApiTest"/> class using the provided HttpClient and JsonSerializerOptions. Uses an instance of <see cref="IOpenApiJsonSerializer"/> configured with the provided <see cref="Newtonsoft.Json.JsonSerializerSettings"/> for serialization.</summary>
66
+
public %CLASS%(global::System.Net.Http.HttpClient httpClient, global::Newtonsoft.Json.JsonSerializerSettings jsonSettings)
37
67
{
68
+
HttpClient = httpClient;
69
+
serializer = new OpenApiJsonSerializer(jsonSettings);
0 commit comments