Skip to main content

json_schema

Function json_schema 

Source
pub fn json_schema(
    root: &ShapeDef,
    root_name: &str,
    definitions: &Definitions,
    options: &SchemaOptions<'_>,
) -> Value
Expand description

A standalone document for root, written inline at the top with every other definition under $defs (or definitions). root_name is the root’s own definition, dropped from the block unless another definition refers to it.