Skip to content

Commit cbc99c1

Browse files
committed
Use the selected format label
1 parent 1338905 commit cbc99c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Microsoft.OpenApi.Workbench/MainModel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ internal async Task ParseDocumentAsync()
257257
}
258258
}
259259

260-
var format = OpenApiModelFactory.GetFormat(_inputFile);
261-
var readResult = await OpenApiDocument.LoadAsync(stream, format);
260+
var readResult = await OpenApiDocument.LoadAsync(stream, Format.GetDisplayName());
262261
var document = readResult.OpenApiDocument;
263262
var context = readResult.OpenApiDiagnostic;
264263

0 commit comments

Comments
 (0)