56 Commits (5be48693ac52f2d125edbf4b92dbdf1fe0cae552)

Author SHA1 Message Date
vvanglro ec72d15829
Update utils.py 12 months ago
Sebastián Ramírez 27da0d02a7
Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response (#11461) 1 year ago
Sebastián Ramírez dcc952d699
Include HTTP 205 in status codes with no body (#10969) 1 year ago
Evgenii de0126d145
♻️ Simplify string format with f-strings in `fastapi/utils.py` (#10576) 1 year ago
Sebastián Ramírez 2e14c69c31
👷 Adopt Ruff format (#10517) 2 years ago
Heinz-Alexander Fuetterer ae84ff6e44
✏️ Fix typos in emoji docs and in some source examples (#10438) 2 years ago
Sebastián Ramírez 0976185af9
Add support for Pydantic v2 (#9816) 2 years ago
vvanglro 5ffc1c05a9 fix: return dict response model default factory is not work 2 years ago
Zanie Adkins 27618aa2e8
Update `create_cloned_field` to use a global cache and improve startup performance (#4645) 2 years ago
Nadav Zingerman 375513f114
Add support for PEP-593 `Annotated` for specifying dependencies and parameters (#4871) 2 years ago
Sebastián Ramírez fb8e9083f4
📝 Update docs and examples for Response Model with Return Type Annotations, and update runtime error (#5873) 2 years ago
Sebastián Ramírez 7c5626bef7
⬆️ Upgrade Ruff (#5698) 3 years ago
Jarro van Ginkel 0ae8db447a
🐛 Fix support for strings in OpenAPI status codes: `default`, `1XX`, `2XX`, `3XX`, `4XX`, `5XX` (#5187) 3 years ago
Marcelo Trylesinski 30b3905ef3
Support Python internal description on Pydantic model's docstring (#3032) 3 years ago
pylounge dc10b81d05
♻ Simplify internal RegEx in `fastapi/utils.py` (#5057) 3 years ago
Shahriyar Rzayev 00bdf533ef
♻ Change a `dict()` for `{}` in `fastapi/utils.py` (#3138) 3 years ago
Ori Levari 880c8b37cf
🐛 Fix support for extending `openapi_extras` with parameter lists (#4267) 3 years ago
Taneli Hukkinen 634cf22584
🐛 Fix `response_model` not invalidating `None` (#2725) 3 years ago
Sebastián Ramírez c43120258f
🐛 Fix removing body from status codes that do not support it (#5145) 3 years ago
Sebastián Ramírez 9262fa8362
Add support for not needing `...` as default value in required Query(), Path(), Header(), etc. (#4906) 3 years ago
Shahriyar Rzayev 82775f7cd0
♻ Refactor dict value extraction to minimize key lookups `fastapi/utils.py` (#3139) 3 years ago
Sebastián Ramírez 8a0d4c79c1
Add support for custom `generate_unique_id_function` and docs for generating clients (#4650) 3 years ago
Sebastián Ramírez fdb6c9ccc5
Improve type annotations, add support for mypy --strict, internally and for external packages (#2547) 5 years ago
Sebastián Ramírez 313bbe802f
Add support for shared/top-level parameters (dependencies, tags, etc) (#2434) 5 years ago
Sebastián Ramírez e1758d107e
⬆ Require Pydantic > 1.0 (#1862) 5 years ago
Nima Mashhadi M. Reza 3223de5598
🎨 Add typing.Optional to variables that accept None as value (#1731) 5 years ago
Brian Mboya fe453f80ed
⬆ Upgrade isort to version 5.x.x (#1670) 5 years ago
Sebastián Ramírez 181a32236a
Deep merge OpenAPI responses (#1577) 5 years ago
Kazantcev Andrey 434d32b891
Optimize regexp pattern in get_path_param_names (#1243) 5 years ago
Sebastián Ramírez 5984233223
🐛 Fix Enum handling with their own schema definitions (#1463) 5 years ago
voegtlel 0f152b4e97
🐛 Check already cloned fields in create_cloned_field to support recursive models (#1164) 5 years ago
Patrick McKenna afad59dfbb
🐛 Admit valid types for Pydantic fields as responses models (#1017) 5 years ago
Andy Smith 70bdade23b
🐛 Fix Pydantic field clone logic with validators (#899) 5 years ago
Sebastián Ramírez 75a07f24bf
🔒 Fix clone field implementation to handle sub-models in response_model (#889) 5 years ago
Ben Dayan 73260971b5 Add support for OpenAPI Callbacks (#722) 6 years ago
Sebastián Ramírez 83d04df8a6
🔊 Refactor logging (#781) 6 years ago
dmontagu ab2b86fe2c Add support for Pydantic v1 and above 🎉 (#646) 6 years ago
James Addison 4e50f53459 🐛 Fixing validator-caused incorrect output key order (#637) 6 years ago
dmontagu d8fe307d61 Add support for strings and __future__ type annotations (#451) 6 years ago
dconathan 3025a368c6 Add support and tests for Pydantic dataclasses in response_model (#454) 6 years ago
James Kaplan 46a986cacf ⬆️ Upgrade Pydantic to 0.30 (#384) 6 years ago
Sebastián Ramírez 687065509b
🏗️ Fix same function names in different modules with composite bodies (#347) 6 years ago
Sebastián Ramírez dcc1e1bcf8
♻️ Refine internal type declarations and logic around them (#338) 6 years ago
Sebastián Ramírez aa84ac8e3e
Implement support for Pydantic's ORM mode (#322) 6 years ago
James Kaplan f0df79aa91 ⬆️ Upgrade Pydantic to 0.28 (#320) 6 years ago
Sebastián Ramírez 546d233dec
♻️ Update Pydantic usage, types, values, minor structure changes (#164) 6 years ago
Sebastián Ramírez 2bd775988f Add/refactor addditional responses, tests, docs 6 years ago
Mohammed 84a300ef84 Formatting according to guide 6 years ago
Mohammed aa0bca7bb2 Additional Responses implementation 6 years ago
Sebastián Ramírez 577c5a84db 🐛 Fix constrained bytes, from defaults in Pydantic 6 years ago