184 Commits (1ef69a2c182fbaeb1810d6ad363de9df34533da1)

Author SHA1 Message Date
Sebastián Ramírez 6e42bcd8ce
🔊 Add deprecation warnings when using `pydantic.v1` (#14583) 7 months ago
Sebastián Ramírez e2cd8a4201
Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 7 months ago
Sebastián Ramírez 1c4fc96c91
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 7 months ago
Motov Yurii d86c47477e
🐛 Fix parameter aliases (#14371) 7 months ago
Sebastián Ramírez 7ba042e069
🐛 Fix support for `if TYPE_CHECKING`, non-evaluated stringified annotations (#14485) 7 months ago
Motov Yurii da0ffab0b2
🐛 Fix using class (not instance) dependency that has `__call__` method (#14458) 7 months ago
Sebastián Ramírez 0b5fa563cd
🐛 Fix OAuth2 scopes in OpenAPI in extra corner cases, parent dependency with scopes, sub-dependency security scheme without scopes (#14459) 7 months ago
chaen 861598b4e3
🐛 Fix evaluating stringified annotations in Python 3.10 (#11355) 7 months ago
Sebastián Ramírez bba4d4c95e
🐛 Fix support for functools wraps and partial combined, for async and regular functions and classes in path operations and dependencies (#14448) 7 months ago
Lie Ryan 9824486616
Allow using dependables with `functools.partial()` (#9753) 7 months ago
[object Object] 1c1e584abd
Add support for wrapped functions (e.g. `@functools.wraps()`) used with forward references (#5077) 7 months ago
Matthew Martin 73c411e1b9
Handle wrapped dependencies (#9555) 7 months ago
Motov Yurii 015b4fae9c
🐛 Fix Query\Header\Cookie parameter model alias (#14360) 7 months ago
Motov Yurii de5bec637c
🐛 Fix parsing extra non-body parameter list (#14356) 8 months ago
Motov Yurii 6cf40df24d
🐛 Fix parsing extra `Form` parameter list (#14303) 8 months ago
ad hoc d68c066246
🐛 Fix support for form values with empty strings interpreted as missing (`None` if that's the default), for compatibility with HTML forms (#13537) 8 months ago
Sebastián Ramírez 7fbd30460f
🐛 Cache dependencies that don't use scopes and don't have sub-dependencies with scopes (#14419) 8 months ago
Kristján Valur Jónsson 378ad688b7
🐛 Fix hierarchical security scope propagation (#5624) 8 months ago
Sebastián Ramírez 85701631a0
♻️ Make the result of `Depends()` and `Security()` hashable, as a workaround for other tools interacting with these internal parts (#14372) 8 months ago
JONEMI21 535a3ffc55 lint, fmt 8 months ago
JONEMI21 88d2ace66a ignore invalid for pydantic v1 8 months ago
JONEMI21 03d445ad5e omit by default for pydantic v2 8 months ago
JONEMI21 45825d7d11 omit by default query params 8 months ago
JONEMI21 076a8cf3fa rm omit by default fn 8 months ago
luzzodev 282f372eda
🐛 Fix `Depends(func, scope='function')` for top level (parameterless) dependencies (#14301) 8 months ago
JONEMI21 62344d272d right directions maybe 8 months ago
JONEMI21 d90b39a60a persuing 'on_error="omit"' 8 months ago
JONEMI21 1e22422ff9 WrapValidator pydanticv2 only - need different solution for v1 8 months ago
JONEMI21 687dd65c31 align tests with intended functionality 8 months ago
pre-commit-ci[bot] 147ca63107 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 8 months ago
JONEMI21 c9bfba04dd use wrap validator to remove failing values 8 months ago
JONEMI21 103d46921b simplify typing 8 months ago
JONEMI21 9b4e4df2d8 add typing 8 months ago
JONEMI21 61b683e562 fix for pydantic v1 8 months ago
JONEMI21 78cffc8ad7 rm unused 8 months ago
JONEMI21 1a57459eda update and remove otherwise captured query params 8 months ago
pre-commit-ci[bot] dcd67c7feb 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks 8 months ago
Sebastián Ramírez ac438b9934
Add support for dependencies with scopes, support `scope="request"` for dependencies with `yield` that exit before the response is sent (#14262) 8 months ago
Motov Yurii 496de1816a
🐛 Fix security schemes in OpenAPI when added at the top level app (#14266) 9 months ago
Sebastián Ramírez dcfb8b9dda
♻️ Reduce internal cyclic recursion in dependencies, from 2 functions calling each other to 1 calling itself (#14256) 9 months ago
Sebastián Ramírez bb88a0f94a
♻️ Refactor internals of dependencies, simplify code and remove `get_param_sub_dependant` (#14255) 9 months ago
Sebastián Ramírez c144f9fbd3
♻️ Refactor internals of dependencies, simplify using dataclasses (#14254) 9 months ago
Sofie Van Landeghem d8c691f7f0
🐛 Fix internal Pydantic v1 compatibility (warnings) for Python 3.14 and Pydantic 2.12.1 (#14186) 9 months ago
Sebastián Ramírez d34918abf0
Add support for `from pydantic.v1 import BaseModel`, mixed Pydantic v1 and v2 models in the same app (#14168) 9 months ago
Thomas LÉVEIL 44fc67632b
🐛 Fix validation error when `File` is declared after `Form` parameter (#11194) 10 months ago
Robert Hofer b51ec36f2e
Allow `None` as return type for bodiless responses (#9425) 10 months ago
Evgeny Bokshitsky c2c6049b8f
♻️ Create `dependency-cache` dict in `solve_dependencies` only if `None` (don't re-create if empty) (#13689) 10 months ago
rmawatson 9ac56c70f2
🐛 Reenable `allow_arbitrary_types` when only 1 argument is used on the API endpoint (#13694) 10 months ago
secrett2633 c831cdbde2
🐛 Fix `inspect.getcoroutinefunction()` can break testing with `unittest.mock.patch()` (#14022) 10 months ago
Patrick Arminio 9d0d8828cc
🐛 Fix support for unions when using `Form` (#13827) 1 year ago