Expand description
Renderer that produces a JSON Schema document from a SchemaGraph/
SchemaType.
Structs§
- Json
Schema Config - Configuration for the JSON Schema renderer.
Functions§
- to_
external_ input_ json_ schema - Render a JSON Schema for untrusted external input. Host-managed capability leaves cannot be constructed by callers.
- to_
external_ output_ json_ schema - Render a JSON Schema for externally visible output. Host-managed capability leaves expose only their redacted placeholders.
- to_
json_ schema - Render
(graph, ty)to a canonical JSON Schema document (includes the$schemadraft marker). Seeto_json_schema_with_configfor the configurable form. - to_
json_ schema_ with_ config - Render
(graph, ty)to a JSON Schema document. Whentyis aRef(TypeId)the document is{ "$defs": {…}, "$ref": "#/$defs/<id>" }; otherwise the root schema is emitted inline with$defscarrying every named definition from the graph plus any union per-branch synthesised schemas under tag-derived keys (see [BranchNameTable]). - to_
reflection_ json_ schema - Render the JSON domain accepted by reflection
pack_json/unpack_json. Capability, future, and stream leaves are unsatisfiable because those adapters have no JSON representation for them.