Skip to main content

Module json_value

Module json_value 

Source
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::Value into a value tree typed by ty in graph.
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 (see HostManagedKind).