Skip to main content

validate_typed_serde_value

Function validate_typed_serde_value 

Source
pub fn validate_typed_serde_value(value: &Value) -> Result<(), Tcv1Error>
Expand description

Validate a structured serde_json value against the same finite-number, nesting and NFC-key rules as a raw TCV1 document.

A serde_json::Value has already lost duplicate raw object members, so raw JSON boundaries must still call parse_typed_json before decoding. This helper is for structured host boundaries (for example Python mappings), where distinct keys can still collide after Unicode normalization.