99using Microsoft . OpenApi . Interfaces ;
1010using Microsoft . OpenApi . Reader ;
1111using SharpYaml . Serialization ;
12- using System . Linq ;
1312using Microsoft . OpenApi . Models ;
1413using System ;
1514using System . Text ;
@@ -86,6 +85,7 @@ public static ReadResult Read(JsonNode jsonNode, OpenApiReaderSettings settings,
8685 /// <inheritdoc/>
8786 public T ReadFragment < T > ( MemoryStream input ,
8887 OpenApiSpecVersion version ,
88+ OpenApiDocument openApiDocument ,
8989 out OpenApiDiagnostic diagnostic ,
9090 OpenApiReaderSettings settings = null ) where T : IOpenApiElement
9191 {
@@ -105,13 +105,13 @@ public T ReadFragment<T>(MemoryStream input,
105105 return default ;
106106 }
107107
108- return ReadFragment < T > ( jsonNode , version , out diagnostic , settings ) ;
108+ return ReadFragment < T > ( jsonNode , version , openApiDocument , out diagnostic , settings ) ;
109109 }
110110
111111 /// <inheritdoc/>
112- public static T ReadFragment < T > ( JsonNode input , OpenApiSpecVersion version , out OpenApiDiagnostic diagnostic , OpenApiReaderSettings settings = null ) where T : IOpenApiElement
112+ public static T ReadFragment < T > ( JsonNode input , OpenApiSpecVersion version , OpenApiDocument openApiDocument , out OpenApiDiagnostic diagnostic , OpenApiReaderSettings settings = null ) where T : IOpenApiElement
113113 {
114- return _jsonReader . ReadFragment < T > ( input , version , out diagnostic , settings ) ;
114+ return _jsonReader . ReadFragment < T > ( input , version , openApiDocument , out diagnostic , settings ) ;
115115 }
116116
117117 /// <summary>
0 commit comments