fn leaves(value: &Value, root: &str) -> Vec<(String, String)>Expand description
Recursively collects (path, warning) pairs from every string leaf of
value. path starts at root (the top-level config key) and accumulates
dotted object keys (headers.x-custom) and [i] array indices
(list[1]) down to the leaf that produced the warning.