@@ -32,8 +32,8 @@ public class ParsingContext
32
32
/// <summary>
33
33
/// Initiates the parsing process. Not thread safe and should only be called once on a parsing context
34
34
/// </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>
37
37
/// <returns>An OpenApiDocument populated based on the passed yamlDocument </returns>
38
38
internal OpenApiDocument Parse ( YamlDocument yamlDocument , OpenApiDiagnostic diagnostic )
39
39
{
@@ -47,13 +47,13 @@ internal OpenApiDocument Parse(YamlDocument yamlDocument, OpenApiDiagnostic diag
47
47
{
48
48
case string version when version == "2.0" :
49
49
VersionService = new OpenApiV2VersionService ( ) ;
50
- doc = this . VersionService . LoadDocument ( this . RootNode ) ;
50
+ doc = VersionService . LoadDocument ( RootNode ) ;
51
51
diagnostic . SpecificationVersion = OpenApiSpecVersion . OpenApi2_0 ;
52
52
break ;
53
53
54
54
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 ) ;
57
57
diagnostic . SpecificationVersion = OpenApiSpecVersion . OpenApi3_0 ;
58
58
break ;
59
59
@@ -69,7 +69,7 @@ internal OpenApiDocument Parse(YamlDocument yamlDocument, OpenApiDiagnostic diag
69
69
/// </summary>
70
70
/// <param name="yamlDocument"></param>
71
71
/// <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>
73
73
/// <returns>An OpenApiDocument populated based on the passed yamlDocument </returns>
74
74
internal T ParseFragment < T > ( YamlDocument yamlDocument , OpenApiSpecVersion version , OpenApiDiagnostic diagnostic ) where T : IOpenApiElement
75
75
{
0 commit comments