Table of Contents

Class ValidationDiagnostic

Namespace
SpecWorks.AiCatalog.Validation
Assembly
SpecWorks.AiCatalog.dll

A single validation diagnostic (error or warning).

public sealed record ValidationDiagnostic
Inheritance
object
ValidationDiagnostic

Constructors

ValidationDiagnostic(DiagnosticSeverity, string, string?)

A single validation diagnostic (error or warning).

public ValidationDiagnostic(DiagnosticSeverity Severity, string Message, string? Path = null)

Parameters

Severity DiagnosticSeverity

Error or warning.

Message string

Human-readable description of the issue.

Path string

JSON pointer-style path to the element (e.g., "entries[0].trustManifest.identity").

Properties

Message

Human-readable description of the issue.

public string Message { get; init; }

Property Value

string

Path

JSON pointer-style path to the element (e.g., "entries[0].trustManifest.identity").

public string? Path { get; init; }

Property Value

string

Severity

Error or warning.

public DiagnosticSeverity Severity { get; init; }

Property Value

DiagnosticSeverity