Skip to main content

nested_model_using_definitions

No overview available.

def nested_model_using_definitions(
bench: &mut Bencher
) - > dict

Creates a Pydantic model schema that utilizes internal definitions for nested structures to avoid redundancy.

Returns

TypeDescription
dictA dictionary representing the JSON schema of the model including a definitions section for nested components.