validate
Validation normative de fichiers Markdown OKF (exit 0 si conforme, exit 1 sinon).
Normative validation of OKF Markdown files — exit 0 if conformant, 1 otherwise.
- class okflint.validate.Diagnostic(code, tier, severity, file, message)[source]
Bases:
objectOKF validation error or warning.
- exception okflint.validate.ManifestError[source]
Bases:
ExceptionInvalid or unreadable OKF manifest.
- okflint.validate.run_validate(manifest_path, targets, *, vault_index=None)[source]
Orchestrate OKF validation over a list of targets.
When
vault_indexis provided it is used as the wikilink resolution index instead of rebuilding one from the manifest roots, allowing the caller to pass a vault-wide union index built once for all bundles.- Parameters:
- Return type:
tuple[list[Diagnostic],int]- Returns:
Tuple (list of diagnostics, exit code 0 or 1).
- Raises:
ManifestError – If the manifest is invalid or unreadable.