Skip to main content

collect_bindings

Function collect_bindings 

Source
pub fn collect_bindings(value: &Value) -> Vec<Binding>
Expand description

Every data-model path referenced anywhere inside a JSON value.

Walks the value looking for {"path": "..."} bindings, skipping {"componentId", "path"} child templates, whose path points at a collection rather than at a bound value. Paths are returned in encounter order with duplicates removed, keyed by the property path they were found at so a validator can report a precise locator.