@@ -23,7 +23,7 @@ public class OpenApiJsonReader : IOpenApiReader
23
23
/// <summary>
24
24
/// Reads the memory stream input and parses it into an Open API document.
25
25
/// </summary>
26
- /// <param name="input">TextReader containing OpenAPI description to parse.</param>
26
+ /// <param name="input">Memory stream containing OpenAPI description to parse.</param>
27
27
/// <param name="settings">The Reader settings to be used during parsing.</param>
28
28
/// <returns></returns>
29
29
public ReadResult Read ( MemoryStream input ,
@@ -33,7 +33,7 @@ public ReadResult Read(MemoryStream input,
33
33
var diagnostic = new OpenApiDiagnostic ( ) ;
34
34
settings ??= new OpenApiReaderSettings ( ) ;
35
35
36
- // Parse the JSON text in the TextReader into JsonNodes
36
+ // Parse the JSON text in the stream into JsonNodes
37
37
try
38
38
{
39
39
jsonNode = JsonNode . Parse ( input ) ;
@@ -106,7 +106,7 @@ public ReadResult Read(JsonNode jsonNode,
106
106
/// <summary>
107
107
/// Reads the stream input asynchronously and parses it into an Open API document.
108
108
/// </summary>
109
- /// <param name="input">TextReader containing OpenAPI description to parse.</param>
109
+ /// <param name="input">Memory stream containing OpenAPI description to parse.</param>
110
110
/// <param name="settings">The Reader settings to be used during parsing.</param>
111
111
/// <param name="cancellationToken">Propagates notifications that operations should be cancelled.</param>
112
112
/// <returns></returns>
@@ -118,7 +118,7 @@ public async Task<ReadResult> ReadAsync(Stream input,
118
118
var diagnostic = new OpenApiDiagnostic ( ) ;
119
119
settings ??= new OpenApiReaderSettings ( ) ;
120
120
121
- // Parse the JSON text in the TextReader into JsonNodes
121
+ // Parse the JSON text in the stream into JsonNodes
122
122
try
123
123
{
124
124
jsonNode = await JsonNode . ParseAsync ( input , cancellationToken : cancellationToken ) . ConfigureAwait ( false ) ;
@@ -195,7 +195,5 @@ public T ReadFragment<T>(JsonNode input,
195
195
196
196
return ( T ) element ;
197
197
}
198
-
199
-
200
198
}
201
199
}
0 commit comments