Skip to main content

get_flat_params

Extracts and flattens all path, query, header, and cookie parameters from a Dependant object into a single list of ModelField instances.

def get_flat_params(
dependant: Dependant
) - > list[ModelField]

Extracts and flattens all path, query, header, and cookie parameters from a dependency object into a single list of model fields.

Parameters

NameTypeDescription
dependantDependantThe dependency object containing the hierarchical parameter definitions to be flattened.

Returns

TypeDescription
list[ModelField]A consolidated list of all flattened parameter fields extracted from the dependency structure.