buffalo_core.schema.schema_tree
- buffalo_core.schema.schema_tree(cls)[source]
Return a nested tree description for one schema dataclass.
- Parameters:
cls (
type[object]) – Dataclass type whose nested field structure should be described.- Returns:
Nested field tree carrying ordered field descriptions, optionality, nested dataclass children, display-friendly type names, and the stored field metadata contract.
- Return type:
- Raises:
TypeError – If
clsis not a dataclass type.