@@ -255,7 +255,7 @@ private static async Task<OpenApiDocument> GetOpenApiAsync(HidiOptions options,
255255 {
256256 stream = await GetStreamAsync ( options . OpenApi , logger , cancellationToken ) . ConfigureAwait ( false ) ;
257257 var result = await ParseOpenApiAsync ( options . OpenApi , options . InlineExternal , logger , stream , cancellationToken ) . ConfigureAwait ( false ) ;
258- document = result . OpenApiDocument ;
258+ document = result . Document ;
259259 }
260260 else throw new InvalidOperationException ( "No input file path or URL provided" ) ;
261261
@@ -358,7 +358,7 @@ private static MemoryStream ApplyFilterToCsdl(Stream csdlStream, string entitySe
358358 {
359359 var statsVisitor = new StatsVisitor ( ) ;
360360 var walker = new OpenApiWalker ( statsVisitor ) ;
361- walker . Walk ( result . OpenApiDocument ) ;
361+ walker . Walk ( result . Document ) ;
362362
363363 logger . LogTrace ( "Finished walking through the OpenApi document. Generating a statistics report.." ) ;
364364 #pragma warning disable CA2254
@@ -377,7 +377,7 @@ private static MemoryStream ApplyFilterToCsdl(Stream csdlStream, string entitySe
377377
378378 if ( result is null ) return null ;
379379
380- return result . OpenApiDiagnostic . Errors . Count == 0 ;
380+ return result . Diagnostic . Errors . Count == 0 ;
381381 }
382382
383383 private static async Task < ReadResult > ParseOpenApiAsync ( string openApiFile , bool inlineExternal , ILogger logger , Stream stream , CancellationToken cancellationToken = default )
@@ -439,7 +439,7 @@ public static OpenApiDocument FixReferences(OpenApiDocument document, string for
439439 var sb = new StringBuilder ( ) ;
440440 document . SerializeAsV3 ( new OpenApiYamlWriter ( new StringWriter ( sb ) ) ) ;
441441
442- var doc = OpenApiDocument . Parse ( sb . ToString ( ) , format ) . OpenApiDocument ;
442+ var doc = OpenApiDocument . Parse ( sb . ToString ( ) , format ) . Document ;
443443
444444 return doc ;
445445 }
@@ -649,7 +649,7 @@ private static string GetInputPathExtension(string? openapi = null, string? csdl
649649
650650 private static void LogErrors ( ILogger logger , ReadResult result )
651651 {
652- var context = result . OpenApiDiagnostic ;
652+ var context = result . Diagnostic ;
653653 if ( context . Errors . Count != 0 )
654654 {
655655 using ( logger . BeginScope ( "Detected errors" ) )
0 commit comments