Skip to content

Commit 205fec1

Browse files
committed
chore: changes visibility of client getter to avoid it being used for other aspects
Signed-off-by: Vincent Biret <[email protected]>
1 parent 9b910f3 commit 205fec1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.OpenApi/Reader/OpenApiReaderSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class OpenApiReaderSettings
2525
/// </summary>
2626
public HttpClient HttpClient
2727
{
28-
get
28+
internal get
2929
{
3030
_httpClient ??= httpClient.Value;
3131
return _httpClient;

test/Microsoft.OpenApi.Tests/PublicApi/PublicApi.approved.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ namespace Microsoft.OpenApi.Reader
14971497
public Microsoft.OpenApi.Interfaces.IStreamLoader CustomExternalLoader { get; set; }
14981498
public System.Collections.Generic.List<string> DefaultContentType { get; set; }
14991499
public System.Collections.Generic.Dictionary<string, System.Func<System.Text.Json.Nodes.JsonNode, Microsoft.OpenApi.OpenApiSpecVersion, Microsoft.OpenApi.Interfaces.IOpenApiExtension>> ExtensionParsers { get; set; }
1500-
public System.Net.Http.HttpClient HttpClient { get; init; }
1500+
public System.Net.Http.HttpClient HttpClient { init; }
15011501
public bool LeaveStreamOpen { get; set; }
15021502
public bool LoadExternalRefs { get; set; }
15031503
public System.Collections.Generic.Dictionary<string, Microsoft.OpenApi.Interfaces.IOpenApiReader> Readers { get; init; }

0 commit comments

Comments
 (0)