Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for get_flat_params (0.06 sec)

  1. fastapi/dependencies/utils.py

        if len(fields) == 1 and lenient_issubclass(first_field.type_, BaseModel):
            fields_to_extract = get_cached_model_fields(first_field.type_)
            return fields_to_extract
        return fields
    
    
    def get_flat_params(dependant: Dependant) -> List[ModelField]:
        flat_dependant = get_flat_dependant(dependant, skip_repeats=True)
        path_params = _get_flat_fields_from_params(flat_dependant.path_params)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 21:46:26 UTC 2024
    - 34.7K bytes
    - Viewed (0)
Back to top