Skip to main content

validate_snapshot

Function validate_snapshot 

Source
pub fn validate_snapshot(
    value: &Value,
    limits: &Limits,
) -> Result<(), ValidationError>
Expand description

Checks unique ids, existing and acyclic parents, the closed role, action and state vocabularies, bounded strings and counts, and rects that intersect the viewport unless the node is hidden.

§Errors

Returns a ValidationError whose code matches the reference implementation’s.