Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions src/Microsoft.OpenApi/Reader/ReadResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,27 @@

using Microsoft.OpenApi.Models;

namespace Microsoft.OpenApi.Reader
namespace Microsoft.OpenApi.Reader;
/// <summary>
/// Container object used for returning the result of reading an OpenAPI description.
/// </summary>
public class ReadResult
{
/// <summary>
/// Container object used for returning the result of reading an OpenAPI description.
/// The parsed OpenApiDocument. Null will be returned if the document could not be parsed.
/// </summary>
public class ReadResult
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)
{
/// <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;
}
document = Document;
diagnostic = Diagnostic;
}
}