Skip to content

Commit 8a17bf2

Browse files
Update src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent e3049a6 commit 8a17bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public static T Parse<T>(string input,
205205
private static async Task<ReadResult> InternalLoadAsync(Stream input, string format, OpenApiReaderSettings settings, CancellationToken cancellationToken = default)
206206
{
207207
var reader = OpenApiReaderRegistry.GetReader(format);
208-
var readResult = await reader.ReadAsync(input, settings, cancellationToken);
208+
var readResult = await reader.ReadAsync(input, settings, cancellationToken).ConfigureAwait(false);
209209

210210
if (settings?.LoadExternalRefs ?? DefaultReaderSettings.LoadExternalRefs)
211211
{

0 commit comments

Comments
 (0)