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
| Name | Type | Description |
|---|---|---|
| dependant | Dependant | The dependency object containing the hierarchical parameter definitions to be flattened. |
Returns
| Type | Description |
|---|---|
list[ModelField] | A consolidated list of all flattened parameter fields extracted from the dependency structure. |