458 Commits (8f82c94de0ff641a239db59e58dfdc6010a4b26a)

Author SHA1 Message Date
Motov Yurii 6cf40df24d
🐛 Fix parsing extra `Form` parameter list (#14303) 6 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) 6 months ago
Sofie Van Landeghem 8f99a2b734
🐛 Avoid accessing non-existing "$ref" key for Pydantic v2 compat remapping (#14361) 6 months ago
Hemanth U bf322d0e94
🐛 Fix Windows UnicodeEncodeError in CLI test (#14295) 6 months ago
Kent Huang 20f40b29c0
🐛 Fix `TypeError` when encoding a decimal with a `NaN` or `Infinity` value (#12935) 6 months ago
Sebastián Ramírez 7fbd30460f
🐛 Cache dependencies that don't use scopes and don't have sub-dependencies with scopes (#14419) 6 months ago
Kristján Valur Jónsson 378ad688b7
🐛 Fix hierarchical security scope propagation (#5624) 6 months ago
Motov Yurii 51ad909ffe
🐛 Use `401` status code in security classes when credentials are missing (#13786) 6 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) 7 months ago
Edge-Seven df83eb7278
📝 Fix typos in code comments (#14364) 7 months ago
Sebastián Ramírez 5d40dfbc9b
🐛 Fix handling of JSON Schema attributes named "$ref" (#14349) 7 months ago
luzzodev 282f372eda
🐛 Fix `Depends(func, scope='function')` for top level (parameterless) dependencies (#14301) 7 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) 7 months ago
Motov Yurii 496de1816a
🐛 Fix security schemes in OpenAPI when added at the top level app (#14266) 7 months ago
Sebastián Ramírez dcfb8b9dda
♻️ Reduce internal cyclic recursion in dependencies, from 2 functions calling each other to 1 calling itself (#14256) 7 months ago
Sebastián Ramírez c144f9fbd3
♻️ Refactor internals of dependencies, simplify using dataclasses (#14254) 7 months ago
Sebastián Ramírez 6a657f360d
🐛 Fix separation of schemas with nested models introduced in 0.119.0 (#14246) 7 months ago
Sofie Van Landeghem d8c691f7f0
🐛 Fix internal Pydantic v1 compatibility (warnings) for Python 3.14 and Pydantic 2.12.1 (#14186) 8 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) 8 months ago
Sofie Van Landeghem 3611c3fc5b
⬆️ Add support for Python 3.14 (#14165) 8 months ago
François Voron 185cecd891
🐛 Fix tagged discriminated union not recognized as body field (#12942) 8 months ago
Colin Watson c970d8a735
👽️ Ensure compatibility with Pydantic 2.12.0 (#14036) 8 months ago
Sebastián Ramírez e329d78f86
🐛 Fix support for `StreamingResponse`s with dependencies with `yield` or `UploadFile`s, close after the response is done (#14099) 8 months ago
Thomas LÉVEIL 44fc67632b
🐛 Fix validation error when `File` is declared after `Form` parameter (#11194) 9 months ago
vvanglro f1e6f978ce
️ Fix `default_factory` for response model field with Pydantic V1 (#9704) 9 months ago
Robert Hofer b51ec36f2e
Allow `None` as return type for bodiless responses (#9425) 9 months ago
Max McLennan 86e515784d
🐛 Fix inconsistent processing of model docstring formfeed char with Pydantic V1 (#6039) 9 months ago
Salim Aboubacar 2dc769b121
🐛 Fix `jsonable_encoder` alters `json_encoders` of Pydantic v1 objects (#4972) 9 months ago
sammasak 8ede27223e
Allow array values for OpenAPI schema `type` field (#13639) 9 months ago
rmawatson 9ac56c70f2
🐛 Reenable `allow_arbitrary_types` when only 1 argument is used on the API endpoint (#13694) 9 months ago
Carlos Mario Toro bc5013cd56
Add OpenAPI `external_docs` parameter to `FastAPI` (#13713) 9 months ago
Amogha Rao 5fef4d199b
Enable test case for duplicated headers in `test_tutorial/test_header_params/test_tutorial003.py` (#13864) 9 months ago
山崎ヒカル 11d424c3dc
Simplify tests for response_model (#14062) 9 months ago
Ben Beasley 7563579dc8
⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0 (#14077) 9 months ago
Sebastián Ramírez f5b77ff0fc
📝 Add documentation for Behind a Proxy - Proxy Forwarded Headers, using `--forwarded-allow-ips="*"` (#14028) 9 months ago
z0z0r4 d4ddcc5878
📝 Update testing events documentation (#13259) 9 months ago
Chih-Hsuan Yen 54c7c34b25
⬆ Update httpx requirement to >=0.23.0,<0.29.0 (#13114) 10 months ago
Patrick Arminio 9d0d8828cc
🐛 Fix support for unions when using `Form` (#13827) 11 months ago
oogee 30b9dfb11c
🚸 Set format to password for fields `password` and `client_secret` in `OAuth2PasswordRequestForm`, make docs show password fields for passwords (#11032) 12 months ago
Valentyn 85a2eed888
Simplify tests for `settings` (#13505) 12 months ago
Valentyn da4605b039
Simplify tests for `validate_response_recursive` (#13507) 12 months ago
Motov Yurii 535d5b3f9f
🐛 Fix truncating the model's description with form feed (`\f`) character for Pydantic V2 (#13698) 12 months ago
Joakim Nordling 8fa56b46a1
⬆️ Update ReDoc to version 2.x (#9700) 1 year ago
Frank Hoffmann ea42ebda80
Use `inline-snapshot` to support different Pydantic versions in the test suite (#12534) 1 year ago
Sebastián Ramírez 2537d9d1c2
🐛 Fix `convert_underscores=False` for header Pydantic models (#13515) 1 year ago
dependabot[bot] 8c94e97c89
⬆ Bump ruff to 0.9.4 (#13299) 1 year ago
Sebastián Ramírez 74fe89bf35
🐛 Add docs examples and tests (support) for `Annotated` custom validations, like `AfterValidator`, revert #13440 (#13442) 1 year ago
Victorien 15dd2b67d3
♻️ Update internal annotation usage for compatibilty with Pydantic 2.11 (#13314) 1 year ago
alv2017 7eabff43de
Fix a minor bug in the test `tests/test_modules_same_name_body/test_main.py` (#13411) 1 year ago
Arthur Rio ccc7c8fef9
🐛 Ensure that `HTTPDigest` only raises an exception when `auto_error is True` (#2939) 1 year ago