Skip to content

Commit f425b8e

Browse files
committed
chore: release 2.0.0-preview.11
Release-As: 2.0.0-preview.11
1 parent e740004 commit f425b8e

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

src/Microsoft.OpenApi/Reader/ReadResult.cs

+18-19
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,27 @@
33

44
using Microsoft.OpenApi.Models;
55

6-
namespace Microsoft.OpenApi.Reader
6+
namespace Microsoft.OpenApi.Reader;
7+
/// <summary>
8+
/// Container object used for returning the result of reading an OpenAPI description.
9+
/// </summary>
10+
public class ReadResult
711
{
812
/// <summary>
9-
/// Container object used for returning the result of reading an OpenAPI description.
13+
/// The parsed OpenApiDocument. Null will be returned if the document could not be parsed.
1014
/// </summary>
11-
public class ReadResult
15+
public OpenApiDocument Document { get; set; }
16+
/// <summary>
17+
/// OpenApiDiagnostic contains the Errors reported while parsing
18+
/// </summary>
19+
public OpenApiDiagnostic Diagnostic { get; set; }
20+
/// <summary>
21+
/// Deconstructs the result for easier assignment on the client application.
22+
/// </summary>
23+
public void Deconstruct(out OpenApiDocument document, out OpenApiDiagnostic diagnostic)
1224
{
13-
/// <summary>
14-
/// The parsed OpenApiDocument. Null will be returned if the document could not be parsed.
15-
/// </summary>
16-
public OpenApiDocument Document { get; set; }
17-
/// <summary>
18-
/// OpenApiDiagnostic contains the Errors reported while parsing
19-
/// </summary>
20-
public OpenApiDiagnostic Diagnostic { get; set; }
21-
/// <summary>
22-
/// Deconstructs the result for easier assignment on the client application.
23-
/// </summary>
24-
public void Deconstruct(out OpenApiDocument document, out OpenApiDiagnostic diagnostic)
25-
{
26-
document = Document;
27-
diagnostic = Diagnostic;
28-
}
25+
document = Document;
26+
diagnostic = Diagnostic;
2927
}
3028
}
29+

0 commit comments

Comments
 (0)