Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _should_embed_body_fields (0.08 sec)

  1. fastapi/dependencies/utils.py

        union_args = get_args(field_type)
    
        for arg in union_args:
            if not lenient_issubclass(arg, BaseModel):
                return False
    
        return True
    
    
    def _should_embed_body_fields(fields: list[ModelField]) -> bool:
        if not fields:
            return False
        # More than one dependency could have the same field, it would show up as multiple
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 37.6K bytes
    - Viewed (3)
  2. fastapi/routing.py

        lenient_issubclass,
    )
    from fastapi.datastructures import Default, DefaultPlaceholder
    from fastapi.dependencies.models import Dependant
    from fastapi.dependencies.utils import (
        _should_embed_body_fields,
        get_body_field,
        get_dependant,
        get_flat_dependant,
        get_parameterless_sub_dependant,
        get_typed_return_annotation,
        solve_dependencies,
    )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
Back to top