File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
test/Microsoft.OpenApi.Hidi.Tests/Services Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 55using Microsoft . OpenApi . Models ;
66using Microsoft . OpenApi . Models . Interfaces ;
77using Microsoft . OpenApi . Models . References ;
8+ using Microsoft . OpenApi . Reader ;
89using Microsoft . OpenApi . Services ;
910using Microsoft . OpenApi . Tests . UtilityFiles ;
1011using Moq ;
@@ -232,7 +233,9 @@ public async Task CopiesOverAllReferencedComponentsToTheSubsetDocumentCorrectly(
232233
233234 // Act
234235 using var stream = File . OpenRead ( filePath ) ;
235- var doc = ( await OpenApiDocument . LoadAsync ( stream , "yaml" ) ) . Document ;
236+ var settings = new OpenApiReaderSettings ( ) ;
237+ settings . AddYamlReader ( ) ;
238+ var doc = ( await OpenApiDocument . LoadAsync ( stream , "yaml" , settings ) ) . Document ;
236239 var predicate = OpenApiFilterService . CreatePredicate ( operationIds : operationIds ) ;
237240 var subsetOpenApiDocument = OpenApiFilterService . CreateFilteredDocument ( doc , predicate ) ;
238241
You can’t perform that action at this time.
0 commit comments