Skip to main content

navigate_pointer

Function navigate_pointer 

Source
pub fn navigate_pointer<'a>(
    schema: &'a SchemaValue,
    root: &'a SchemaValue,
    pointer: &str,
) -> Result<&'a SchemaValue, String>
Expand description

Walk a JSON Pointer path through a schema, resolving $ref at each step.

ยงErrors

Returns an error if a segment in the pointer cannot be resolved.