Class ValidationDiagnostic
- Namespace
- SpecWorks.AiCatalog.Validation
- Assembly
- SpecWorks.AiCatalog.dll
A single validation diagnostic (error or warning).
public sealed record ValidationDiagnostic
- Inheritance
-
objectValidationDiagnostic
Constructors
ValidationDiagnostic(DiagnosticSeverity, string, string?)
A single validation diagnostic (error or warning).
public ValidationDiagnostic(DiagnosticSeverity Severity, string Message, string? Path = null)
Parameters
SeverityDiagnosticSeverityError or warning.
MessagestringHuman-readable description of the issue.
PathstringJSON 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; }