Expand description
Voce IR Validator — Reference IR validation engine.
Validates IR blobs against structural, accessibility, security, SEO, i18n, form, and motion safety rules. Returns typed diagnostics with node paths and expected/actual values.
§Usage
let json = r#"{ "root": { "node_id": "root" } }"#;
let result = voce_validator::validate(json).unwrap();
assert!(!result.has_errors() || result.has_errors()); // always returns a resultRe-exports§
pub use engine::validate;pub use errors::Diagnostic;pub use errors::Severity;pub use errors::ValidationResult;
Modules§
- engine
- Validation engine — orchestrates passes and collects diagnostics.
- errors
- Typed validation error definitions.
- formatter
- Output formatting for validation results.
- index
- Node index — fast lookup structure built from the deserialized IR tree.
- inspect
- IR inspection — human-readable summary of an IR file.
- ir
- Serde-deserializable IR model for validation.
- manifest
- Application manifest — human-readable summary of what was built.
- passes
- Validation passes. Each pass checks one category of rules.
- report
- Report generation — compilation quality metrics.