Captures the ordered diagnostics and write/no-write decision from one validation pass. More...
Properties | |
| IReadOnlyList< AnkiDiagnostic > | Diagnostics [get] |
| Gets findings in deterministic hierarchy and card traversal order. | |
| bool | IsValid [get] |
| Gets whether validated serialization and package creation may proceed. | |
Captures the ordered diagnostics and write/no-write decision from one validation pass.
A result is an immutable snapshot: its diagnostics cannot be changed through the returned collection and later deck mutations do not recalculate it. Warnings and information do not make a deck invalid. Run AnkiValidator.Validate(AnkiDeck) (or its multi-root overload) again after correcting the graph instead of reusing an old result.
Definition at line 10 of file AnkiValidationResult.cs.
|
get |
Gets findings in deterministic hierarchy and card traversal order.
A fixed read-only snapshot; it is empty when validation found no issue.
Definition at line 20 of file AnkiValidationResult.cs.
|
get |
Gets whether validated serialization and package creation may proceed.
true when no diagnostic has AnkiDiagnosticSeverity.Error severity.
Definition at line 24 of file AnkiValidationResult.cs.