Share via


OpenApiDiagnostic.AppendDiagnostic(OpenApiDiagnostic, String) Method

Definition

Append another set of diagnostic Errors and Warnings to this one, this may be appended from another external document's parsing and we want to indicate which file it originated from.

public void AppendDiagnostic(Microsoft.OpenApi.Reader.OpenApiDiagnostic diagnosticToAdd, string? fileNameToAdd = default);
member this.AppendDiagnostic : Microsoft.OpenApi.Reader.OpenApiDiagnostic * string -> unit
Public Sub AppendDiagnostic (diagnosticToAdd As OpenApiDiagnostic, Optional fileNameToAdd As String = Nothing)

Parameters

diagnosticToAdd
OpenApiDiagnostic

The diagnostic instance of which the errors and warnings are to be appended to this diagnostic's

fileNameToAdd
String

The originating file of the diagnostic to be appended, this is prefixed to each error and warning to indicate the originating file

Applies to