Skip to content

Commit

Permalink
Use the selected format label
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieKimani1 committed Nov 25, 2024
1 parent 1338905 commit cbc99c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Microsoft.OpenApi.Workbench/MainModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,7 @@ internal async Task ParseDocumentAsync()
}
}

var format = OpenApiModelFactory.GetFormat(_inputFile);
var readResult = await OpenApiDocument.LoadAsync(stream, format);
var readResult = await OpenApiDocument.LoadAsync(stream, Format.GetDisplayName());
var document = readResult.OpenApiDocument;
var context = readResult.OpenApiDiagnostic;

Expand Down

0 comments on commit cbc99c1

Please sign in to comment.