@@ -23,7 +23,7 @@ public class OpenApiJsonReader : IOpenApiReader
2323 /// <summary>
2424 /// Reads the memory stream input and parses it into an Open API document.
2525 /// </summary>
26- /// <param name="input">TextReader containing OpenAPI description to parse.</param>
26+ /// <param name="input">Memory stream containing OpenAPI description to parse.</param>
2727 /// <param name="settings">The Reader settings to be used during parsing.</param>
2828 /// <returns></returns>
2929 public ReadResult Read ( MemoryStream input ,
@@ -33,7 +33,7 @@ public ReadResult Read(MemoryStream input,
3333 var diagnostic = new OpenApiDiagnostic ( ) ;
3434 settings ??= new OpenApiReaderSettings ( ) ;
3535
36- // Parse the JSON text in the TextReader into JsonNodes
36+ // Parse the JSON text in the stream into JsonNodes
3737 try
3838 {
3939 jsonNode = JsonNode . Parse ( input ) ;
@@ -106,7 +106,7 @@ public ReadResult Read(JsonNode jsonNode,
106106 /// <summary>
107107 /// Reads the stream input asynchronously and parses it into an Open API document.
108108 /// </summary>
109- /// <param name="input">TextReader containing OpenAPI description to parse.</param>
109+ /// <param name="input">Memory stream containing OpenAPI description to parse.</param>
110110 /// <param name="settings">The Reader settings to be used during parsing.</param>
111111 /// <param name="cancellationToken">Propagates notifications that operations should be cancelled.</param>
112112 /// <returns></returns>
@@ -118,7 +118,7 @@ public async Task<ReadResult> ReadAsync(Stream input,
118118 var diagnostic = new OpenApiDiagnostic ( ) ;
119119 settings ??= new OpenApiReaderSettings ( ) ;
120120
121- // Parse the JSON text in the TextReader into JsonNodes
121+ // Parse the JSON text in the stream into JsonNodes
122122 try
123123 {
124124 jsonNode = await JsonNode . ParseAsync ( input , cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
@@ -195,7 +195,5 @@ public T ReadFragment<T>(JsonNode input,
195195
196196 return ( T ) element ;
197197 }
198-
199-
200198 }
201199}
0 commit comments