Expand description
JSON value renderer: convert a (SchemaGraph, SchemaType, SchemaValue)
to and from a serde_json::Value.
Rich scalars route through crate::schema::canonical; the renderer
never re-implements their text/JSON forms.
Functionsยง
- from_
json_ value - Decode a
serde_json::Valueinto a value tree typed bytyingraph. - from_
untrusted_ json_ value - Decode externally supplied JSON without allowing it to construct host-managed capabilities. Rejection happens when the selected value path reaches a capability leaf, so absent options and unselected sum-type arms remain valid.
- to_
json_ value - Render a value tree to a
serde_json::Value. - to_
json_ value_ redacted - Render a value tree to a
serde_json::Value, redacting every host-managed capability node (seeHostManagedKind).