pub fn validate_snapshot(
value: &Value,
limits: &Limits,
) -> Result<(), ValidationError>Expand description
Validate an untrusted snapshot against limits.
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.