Skip to main content

validate

Function validate 

Source
pub fn validate(graph: &Graph) -> Result<GraphSummary, Vec<GraphError>>
Expand description

Validates a graph document, returning a summary on success or EVERY error on failure.

The checks are independent and all run: the returned Vec holds a failure from each check that found one, so an author fixes everything at once. The order of checks below is the order errors appear in.

ยงErrors

Returns the collected GraphErrors when any check fails.