Skip to content

Commit 2a08ff5

Browse files
committed
Fixes based on PR
1 parent f3e19dd commit 2a08ff5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Microsoft.OpenApi.Readers/OpenApiStreamReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public OpenApiDocument Read(Stream input, out OpenApiDiagnostic diagnostic)
104104
}
105105

106106
/// <summary>
107-
/// Reads the stream input and parses the fragment of an OpenAPI descinto an Open API Element.
107+
/// Reads the stream input and parses the fragment of an OpenAPI description into an Open API Element.
108108
/// </summary>
109109
/// <param name="input">Stream containing OpenAPI description to parse.</param>
110110
/// <param name="version">Version of the OpenAPI specification that the fragment conforms to.</param>

src/Microsoft.OpenApi.Readers/ParsingContext.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public class ParsingContext
3232
/// <summary>
3333
/// Initiates the parsing process. Not thread safe and should only be called once on a parsing context
3434
/// </summary>
35-
/// <param name="yamlDocument"></param>
36-
/// <param name="diagnostic"></param>
35+
/// <param name="yamlDocument">Yaml document to parse.</param>
36+
/// <param name="diagnostic">Diagnostic object which will return diagnostic results of the operation.</param>
3737
/// <returns>An OpenApiDocument populated based on the passed yamlDocument </returns>
3838
internal OpenApiDocument Parse(YamlDocument yamlDocument, OpenApiDiagnostic diagnostic)
3939
{
@@ -47,13 +47,13 @@ internal OpenApiDocument Parse(YamlDocument yamlDocument, OpenApiDiagnostic diag
4747
{
4848
case string version when version == "2.0":
4949
VersionService = new OpenApiV2VersionService();
50-
doc = this.VersionService.LoadDocument(this.RootNode);
50+
doc = VersionService.LoadDocument(RootNode);
5151
diagnostic.SpecificationVersion = OpenApiSpecVersion.OpenApi2_0;
5252
break;
5353

5454
case string version when version.StartsWith("3.0"):
55-
this.VersionService = new OpenApiV3VersionService();
56-
doc = this.VersionService.LoadDocument(this.RootNode);
55+
VersionService = new OpenApiV3VersionService();
56+
doc = VersionService.LoadDocument(RootNode);
5757
diagnostic.SpecificationVersion = OpenApiSpecVersion.OpenApi3_0;
5858
break;
5959

@@ -69,7 +69,7 @@ internal OpenApiDocument Parse(YamlDocument yamlDocument, OpenApiDiagnostic diag
6969
/// </summary>
7070
/// <param name="yamlDocument"></param>
7171
/// <param name="version">OpenAPI version of the fragment</param>
72-
/// <param name="diagnostic"></param>
72+
/// <param name="diagnostic">Diagnostic object which will return diagnostic results of the operation.</param>
7373
/// <returns>An OpenApiDocument populated based on the passed yamlDocument </returns>
7474
internal T ParseFragment<T>(YamlDocument yamlDocument, OpenApiSpecVersion version, OpenApiDiagnostic diagnostic) where T: IOpenApiElement
7575
{

0 commit comments

Comments
 (0)