334 Commits (8ae1060978bd9b8d1c34681272f1b7ced0d863db)

Author SHA1 Message Date
Tamir Duberstein bf4fad1fda
♻️ Update tests and internals for compatibility with Pydantic >=2.10 (#12971) 7 months ago
Sebastián Ramírez 5c080d81ae
📝 Update includes for `docs/en/docs/tutorial/schema-extra-example.md` (#12822) 7 months ago
Sebastián Ramírez b31cbbf5f5
♻️ Update logic to import and check `python-multipart` for compatibility with newer version (#12627) 8 months ago
Felix Fanghaenel e049fc4ea1
🐛 Fix openapi generation with responses kwarg (#10895) 8 months ago
Sebastián Ramírez 7daaac2bc3
Add new tutorial for SQL databases with SQLModel (#12285) 9 months ago
Sebastián Ramírez 55035f440b
Add support for Pydantic models for parameters using `Query`, `Cookie`, `Header` (#12199) 9 months ago
Nico Tonnhofer 88d4f2cb18
🐛 Fix form field regression (#12194) 9 months ago
Sebastián Ramírez b0eedbb580
️ Improve performance in request body parsing with a cache for internal model fields (#12184) 9 months ago
Jan Vollmer 424a512a3a
assert that include_router does not cause initialization 10 months ago
Jan Vollmer a4486a15f1
add tests for deferred route initialization 10 months ago
Sebastián Ramírez 4633b1bca9
Add support for forbidding extra form fields with Pydantic models (#12134) 10 months ago
Sebastián Ramírez c411b81c29
Update internal tests for latest Pydantic, including CI tweaks to install the latest Pydantic (#12147) 10 months ago
Sebastián Ramírez 7bad7c0975
Add support for Pydantic models in `Form` parameters (#12129) 10 months ago
Sebastián Ramírez 8e6cf9ee9c
️ Temporarily revert " Add support for Pydantic models in `Form` parameters" to make a checkpoint release (#12128) 10 months ago
Sebastián Ramírez 0f3e65b007
Add support for Pydantic models in `Form` parameters (#12127) 10 months ago
Sebastián Ramírez aa21814a89
♻️ Refactor deciding if `embed` body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models in `Form`, `Query` and others (#12117) 10 months ago
Giunio 51b625e127
🐛 Fix `allow_inf_nan` option for Param and Body classes (#11867) 10 months ago
Pastukhov Nikita 3a4ac24675
🐛 Ensure that `app.include_router` merges nested lifespans (#9630) 10 months ago
Sebastián Ramírez 3a3ad5d66d
⬆️ Upgrade version of Ruff and reformat (#12032) 10 months ago
Sebastián Ramírez a25c92ceb9
♻️ Add support for `pip install "fastapi[standard]"` with standard dependencies and `python -m fastapi` (#11935) 11 months ago
jianghuyiyuan 2e35b176cf
✏️ Fix typos in docs (#11926) 11 months ago
Nir Schulman a69f38340f
📝 Restored Swagger-UI links to use the latest version possible. (#11459) 1 year ago
Nils Lindemann 6d523d62d0
📝 Fix types in examples under `docs_src/extra_data_types` (#10535) 1 year ago
arjwilliams 09e4859cab
🐛 Fix support for query parameters with list types, handle JSON encoding Pydantic `UndefinedType` (#9929) 1 year 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
Nadav Zingerman eec612ca8d
🐛 Fix parameterless `Depends()` with generics (#9479) 1 year ago
Charlie Marsh 5ccc869fee
⬆️ Upgrade configuration for Ruff v0.2.0 (#11075) 1 year ago
Alejandra 93034fea48
📝 Update links to Pydantic docs to point to new website (#11328) 1 year ago
bebop 478288700a
📝 Update examples for tests to replace "inexistent" for "nonexistent" (#11220) 1 year ago
Sebastián Ramírez bf771bd781
🐛 Fix unhandled growing memory for internal server errors, refactor dependencies with `yield` and `except` to require raising again as in regular Python (#11191) 1 year ago
Emmett Butler f18eadb7de
Refactor tests for duplicate operation ID generation for compatibility with other tools running the FastAPI test suite (#10876) 1 year ago
ooknimm be0bd34446
Re-enable test in `tests/test_tutorial/test_header_params/test_tutorial003.py` after fix in Starlette (#10904) 1 year ago
Ezzeddin Abdullah 0c796747a3
📝 Update template docs with more info about `url_for` (#5937) 1 year ago
Sebastián Ramírez dd790c34ff
✏️ Fix typo in dependencies with yield source examples (#10847) 2 years ago
Sebastián Ramírez a4aa79e0b4
Add support for raising exceptions (including `HTTPException`) in dependencies with `yield` in the exit code, do not support them in background tasks (#10831) 2 years ago
Sebastián Ramírez 6f5aa81c07
Add support for multiple Annotated annotations, e.g. `Annotated[str, Field(), Query()]` (#10773) 2 years ago
Alejandra Klachquin 758a8f29e1
📌 Pin Swagger UI version to 5.9.0 temporarily to handle a bug crashing it in 5.9.1 (#10529) 2 years 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 05ca41cfd1
Add reference (code API) docs with PEP 727, add subclass with custom docstrings for `BackgroundTasks`, refactor docs structure (#10392) 2 years ago
Sebastián Ramírez bc935e08b6
⬆️ Upgrade compatibility with Pydantic v2.4, new renamed functions and JSON Schema input/output models with default values (#10344) 2 years ago
Sebastián Ramírez 37d46e6b6c
Add missing test for OpenAPI examples, it was missing in coverage (#10188) 2 years ago
Sebastián Ramírez 1b714b3177
Add support for `openapi_examples` in all FastAPI parameters (#10152) 2 years ago
Sebastián Ramírez ea43f227e5
Add support for disabling the separation of input and output JSON Schemas in OpenAPI with Pydantic v2 (#10145) 2 years ago
Sebastián Ramírez 8cd7cfc2b6
📝 Add new docs section, How To - Recipes, move docs that don't have to be read by everyone to How To (#10114) 2 years ago
Sebastián Ramírez 7a06de2bb9
♻️ Refactor tests for new Pydantic 2.2.1 (#10115) 2 years ago
Sebastián Ramírez 5e8f7f13d7
Add `ResponseValidationError` printable details, to show up in server error logs (#10078) 2 years ago
Sebastián Ramírez 19a2c3bb54
Enable Pydantic's serialization mode for responses, add support for Pydantic's `computed_field`, better OpenAPI for response models, proper required attributes, better generated clients (#10011) 2 years ago
David Montague 25694f5ae1
Fix tests for compatibility with pydantic 2.1.1 (#9943) 2 years ago
Irfanuddin Shafi Ahmed 37818f553d
Fix test error in Windows for `jsonable_encoder` (#9840) 2 years ago