ValidationFinding

data class ValidationFinding(val code: String, val rulePath: String, val errorPath: A12PartiallyKnownMultiPointer, val severity: ValidationSeverity, val type: ValidationFindingType, val text: String, val referenced: List<A12PartiallyKnownMultiPointer>, val fillToFix: List<A12PartiallyKnownMultiPointer>)

Detached, kernel-free projection of one validation finding.

Its three addresses are A12's message pointer. IMessage types getErrorFieldPointer(), getReferencedFieldsPointers() and getRefOmissionErrorResponsiblePointers() as PartiallyKnownDocumentMultiPointer, so errorPath, referenced and fillToFix carry A12PartiallyKnownMultiPointer — the value the engine retains, not a string it was rendered into. The distinction is observable: an unresolved level (A12PartiallyKnownMultiPointer.UNKNOWN) and a terminal wildcard are exactly what a rendered path drops, so a consumer that needs them can only get them from here.

Rendering is the consumer's call: A12PartiallyKnownMultiPointer.toExactPointer plus A12PointerFormat.render gives A12's canonical pointer string for an address that names one cell, and null for one that does not.

Constructors

Link copied to clipboard
constructor(code: String, rulePath: String, errorPath: A12PartiallyKnownMultiPointer, severity: ValidationSeverity, type: ValidationFindingType, text: String, referenced: List<A12PartiallyKnownMultiPointer>, fillToFix: List<A12PartiallyKnownMultiPointer>)

Properties

Link copied to clipboard
val code: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rulePath: String
Link copied to clipboard
Link copied to clipboard
val text: String
Link copied to clipboard