diff --git a/src/Microsoft.OpenApi/Reader/ReadResult.cs b/src/Microsoft.OpenApi/Reader/ReadResult.cs index aa835478a..b7d3df12a 100644 --- a/src/Microsoft.OpenApi/Reader/ReadResult.cs +++ b/src/Microsoft.OpenApi/Reader/ReadResult.cs @@ -3,28 +3,27 @@ using Microsoft.OpenApi.Models; -namespace Microsoft.OpenApi.Reader +namespace Microsoft.OpenApi.Reader; +/// +/// Container object used for returning the result of reading an OpenAPI description. +/// +public class ReadResult { /// - /// 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. /// - public class ReadResult + public OpenApiDocument Document { get; set; } + /// + /// OpenApiDiagnostic contains the Errors reported while parsing + /// + public OpenApiDiagnostic Diagnostic { get; set; } + /// + /// Deconstructs the result for easier assignment on the client application. + /// + public void Deconstruct(out OpenApiDocument document, out OpenApiDiagnostic diagnostic) { - /// - /// The parsed OpenApiDocument. Null will be returned if the document could not be parsed. - /// - public OpenApiDocument Document { get; set; } - /// - /// OpenApiDiagnostic contains the Errors reported while parsing - /// - public OpenApiDiagnostic Diagnostic { get; set; } - /// - /// Deconstructs the result for easier assignment on the client application. - /// - public void Deconstruct(out OpenApiDocument document, out OpenApiDiagnostic diagnostic) - { - document = Document; - diagnostic = Diagnostic; - } + document = Document; + diagnostic = Diagnostic; } } +