-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathReadResult.cs
More file actions
30 lines (28 loc) · 1.01 KB
/
ReadResult.cs
File metadata and controls
30 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using Microsoft.OpenApi.Models;
namespace Microsoft.OpenApi.Reader
{
/// <summary>
/// Container object used for returning the result of reading an OpenAPI description.
/// </summary>
public class ReadResult
{
/// <summary>
/// The parsed OpenApiDocument. Null will be returned if the document could not be parsed.
/// </summary>
public OpenApiDocument Document { get; set; }
/// <summary>
/// OpenApiDiagnostic contains the Errors reported while parsing
/// </summary>
public OpenApiDiagnostic Diagnostic { get; set; }
/// <summary>
/// Deconstructs the result for easier assignment on the client application.
/// </summary>
public void Deconstruct(out OpenApiDocument document, out OpenApiDiagnostic diagnostic)
{
document = Document;
diagnostic = Diagnostic;
}
}
}