Skip to main content

validate_document

Function validate_document 

Source
pub fn validate_document(doc: &AdfDocument) -> Vec<AdfSchemaViolation>
Expand description

Validates an entire ADF document and returns all violations found.

An empty Vec means the document is structurally valid against the snapshot. The walker is depth-first: violations under a child are reported after the child’s own violations, so the overall ordering is “each parent’s own checks, then descend into each child in turn.” Arity violations on a parent appear at the position the parent is visited, before any of its descendants’ violations.