add_new_subschema

Function add_new_subschema 

Source
pub fn add_new_subschema(
    generator: &mut SchemaGenerator,
    name: &str,
    schema: Value,
) -> Schema
Expand description

Adds a new JSON schema definition and returns a reference to it. Panics if the name is already in use.