self.path_regex, self.path_format, self.param_convertors = compile_path(path)
(
self.dependant,
- self._flat_dependant,
+ _,
self._embed_body_fields,
) = _build_dependant_with_parameterless_dependencies(
path=self.path_format,
description: str
response_fields: dict[int | str, ModelField]
dependant: Dependant
- _flat_dependant: Dependant
_embed_body_fields: bool
body_field: ModelField | None
is_sse_stream: bool
assert callable(endpoint), "An endpoint must be a callable"
(
route.dependant,
- route._flat_dependant,
+ flat_dependant,
route._embed_body_fields,
) = _build_dependant_with_parameterless_dependencies(
path=route.path_format,
dependencies=route.dependencies,
)
route.body_field = get_body_field(
- flat_dependant=route._flat_dependant,
+ flat_dependant=flat_dependant,
name=route.unique_id,
embed_body_fields=route._embed_body_fields,
)
description: str
response_fields: dict[int | str, ModelField]
dependant: Dependant
- _flat_dependant: Dependant
_embed_body_fields: bool
body_field: ModelField | None
is_sse_stream: bool
description: str = ""
response_fields: dict[int | str, ModelField] = field(default_factory=dict)
dependant: Dependant | None = None
- _flat_dependant: Dependant | None = None
_embed_body_fields: bool = False
body_field: ModelField | None = None
is_sse_stream: bool = False
)
(
context.dependant,
- context._flat_dependant,
+ _,
context._embed_body_fields,
) = _build_dependant_with_parameterless_dependencies(
path="",
self.dependency_overrides_provider = dependency_overrides_provider
(
self.dependant,
- self._flat_dependant,
+ _,
self._embed_body_fields,
) = _build_dependant_with_parameterless_dependencies(
path="",