Skip to main content

Module validate

Module validate 

Source
Expand description

Validation results and per-file dispatch for store files (SPEC 5).

Every model has a validate method returning Diagnostics. Errors make a file invalid; warnings (unknown client ids, unknown OS names) are reported but the data is kept, so a store written by a newer build survives being opened by an older one.

Structs§

Diagnostic
One finding about one field.
Diagnostics
All findings for one file, in discovery order.

Enums§

Severity
StoreDocument
A parsed store file of any kind.
StoreFile
A store file, identified by its path relative to the store root (SPEC 4.5). Carries the id implied by the file or directory name.

Functions§

validate_store_file
Parses and validates one store file. A parse failure is the only diagnostic when the text does not load.