Skip to main content

to_json_schema

Function to_json_schema 

Source
pub fn to_json_schema(graph: &SchemaGraph, ty: &SchemaType) -> Value
Expand description

Render (graph, ty) to a canonical JSON Schema document (includes the $schema draft marker). See to_json_schema_with_config for the configurable form.