Skip to main content

lint_view_definition

Function lint_view_definition 

Source
pub fn lint_view_definition(doc: &Value) -> Vec<Diagnostic>
Expand description

Lints doc as a ViewDefinition and returns every diagnostic found, ordered by pointer in document order (array elements sort by their numeric index, not lexicographically) and stable across runs.

Never panics — every branch below degrades to “not this shape, nothing more to check here” rather than indexing or unwrapping into a Value that turned out not to have the shape a rule expected.

See the module docs for what this checks and what it deliberately does not.