Skip to main content

validate_recursion_and_paths

Function validate_recursion_and_paths 

Source
pub fn validate_recursion_and_paths(data: &Value) -> ValidationReport
Expand description

Validate recursion depth and path syntax across an arbitrary JSON value.

  • Global nesting depth > MAX_GLOBAL_DEPTHGlobalDepthExceeded.
  • A path string that does not match RELAXED_PATH_PATTERNInvalidPathSyntax.
  • A v0.9 function-call object ({call, args}) nested deeper than MAX_FUNC_CALL_DEPTHFuncCallDepthExceeded.

Collects all errors found (does not stop at the first).