Skip to content

Commit 87ce841

Browse files
committed
Merge branch 'mk/fix-json-reader' of https://github.com/microsoft/OpenAPI.NET into mk/fix-json-reader
2 parents ab2ddf0 + 3123cb7 commit 87ce841

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static T Load<T>(MemoryStream input, OpenApiSpecVersion version, string f
108108
public static async Task<ReadResult> LoadAsync(string url, OpenApiReaderSettings settings = null)
109109
{
110110
var result = await RetrieveStreamAndFormatAsync(url);
111-
return await LoadAsync(result.Item1, result.Item2, settings);
111+
return await LoadAsync(result.Item1, result.Item2, settings).ConfigureAwait(false);
112112
}
113113

114114
/// <summary>
@@ -230,7 +230,7 @@ private static async Task<OpenApiDiagnostic> LoadExternalRefsAsync(OpenApiDocume
230230
// Load this root document into the workspace
231231
var streamLoader = new DefaultStreamLoader(settings.BaseUrl);
232232
var workspaceLoader = new OpenApiWorkspaceLoader(openApiWorkSpace, settings.CustomExternalLoader ?? streamLoader, settings);
233-
return await workspaceLoader.LoadAsync(new OpenApiReference() { ExternalResource = "/" }, document, format ?? OpenApiConstants.Json, null, cancellationToken);
233+
return await workspaceLoader.LoadAsync(new OpenApiReference() { ExternalResource = "/" }, document, format ?? OpenApiConstants.Json, null, cancellationToken).ConfigureAwait(false);
234234
}
235235

236236
private static ReadResult InternalLoad(MemoryStream input, string format, OpenApiReaderSettings settings)

0 commit comments

Comments
 (0)