Skip to main content

get_flat_params

No overview available.

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

Flattens and retrieves all parameters (path, query, header, and cookie) associated with a given dependant, returning them as a single list of ModelField objects. This is useful for consolidating all input parameters for processing or validation.

Parameters​

NameTypeDescription
dependantDependantThe Dependant object from which to extract and flatten parameters. This object typically encapsulates information about dependencies and their associated parameters.

Returns​

TypeDescription
list[ModelField]A list of ModelField objects representing all flattened parameters from the dependant.