Skip to content

Commit

Permalink
Merge pull request #2228 from microsoft/ci/release-suffix
Browse files Browse the repository at this point in the history
chore: release 2.0.0-preview.11
  • Loading branch information
baywet authored Mar 3, 2025
2 parents e740004 + f425b8e commit 6c07415
Showing 1 changed file with 18 additions and 19 deletions.
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;
}
}

0 comments on commit 6c07415

Please sign in to comment.