pub fn validate_params_value(
v: &ParamsValue,
depth: usize,
) -> Result<(), String>Expand description
Enforce the extension-constraint params value model (SPEC §5.7.1): null,
booleans, strings, safe integers (|n| ≤ 2^53−1), and arrays/objects of
these. depth is the container nesting already consumed; nesting beyond
MAX_JSON_NESTING_DEPTH is rejected.
The ParamsValue type cannot represent floats or raw bytes, so the
remaining checks are the safe-integer bound and the nesting depth.