164 Commits (0.136.2)

Author SHA1 Message Date
Sebastián Ramírez ae4e45c5cc
🔥 Remove April Fool's `@app.vibe()` 🤪 (#15363) 2 months ago
Sebastián Ramírez 70580da818
Add support for `@app.vibe()` (#15280) 2 months ago
Sebastián Ramírez 2238155844
Add support for Server Sent Events (#15030) 3 months ago
Sebastián Ramírez 1377052c6c
📝 Update docs for responses and new stream with `yield` (#15023) 3 months ago
Casper da Costa-Luis c3f54a0794
📝 Add `await` in `StreamingResponse` code example to allow cancellation (#14681) 3 months ago
Sebastián Ramírez 749cefdeb1
Add support for streaming JSON Lines and binary data with `yield` (#15022) 3 months ago
Motov Yurii 0901b4092c
📝 Rename `docs_src/websockets` to `docs_src/websockets_` to avoid import errors (#14979) 3 months ago
Sebastián Ramírez 22354a2530
🔒️ Add `strict_content_type` checking for JSON requests (#14978) 3 months ago
Sebastián Ramírez 590a5e5355
Serialize JSON response with Pydantic (in Rust), when there's a Pydantic return type or response model (#14962) 3 months ago
Sebastián Ramírez f55ab7e020
🔧 Update pyproject.toml, remove unneeded lines (#14956) 3 months ago
Sebastián Ramírez e8b98d2187
🐛 Fix JSON Schema for files, use `contentMediaType` instead of `format: binary` (#14953) 3 months ago
Sebastián Ramírez faee822574
🎨 Upgrade typing syntax for Python 3.10 (#14932) 4 months ago
Sebastián Ramírez bbb96d4a0a
🔥 Remove Python 3.9 specific files, no longer needed after updating translations (#14931) 4 months ago
Sebastián Ramírez d11f820ac3
📝 Update docs for JWT to prevent timing attacks (#14908) 4 months ago
Sebastián Ramírez c9e2277d8b
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900) 4 months ago
Tima 9df1f8293d
📝 Fix typing issue in `docs_src/app_testing/app_b` code example (#14573) 4 months ago
johnson-earls 3ee652dd0c
📝 Fix example of license identifier in documentation (#14492) 4 months ago
Motov Yurii 741c7345ea
📝 Use return type annotation instead of `response_model` when possible (#14753) 4 months ago
Motov Yurii dc3278654f
📝 Use `WSGIMiddleware` from `a2wsgi` instead of deprecated `fastapi.middleware.wsgi.WSGIMiddleware` (#14756) 4 months ago
Sebastián Ramírez e300630551
Drop support for `pydantic.v1` (#14609) 5 months ago
Motov Yurii 3063ada72f
Add missing tests for code examples (#14569) 5 months ago
Sebastián Ramírez e2cd8a4201
Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` (#14575) 6 months ago
Paras Verma d70ed5eceb
📝 Fix duplicated variable in `docs_src/python_types/tutorial005_py39.py` (#14565) 6 months ago
Sebastián Ramírez 1c4fc96c91
♻️ Upgrade internal syntax to Python 3.9+ 🎉 (#14564) 6 months ago
Sebastián Ramírez ed97d9dc0c
⚰️ Remove Python 3.8 from CI and remove Python 3.8 examples from source docs (#14559) 6 months ago
Sebastián Ramírez cd9d093f60
📝 Update docs about re-raising validation errors, do not include string as is to not leak information (#14487) 6 months ago
Motov Yurii 9475024640
📝 Add variants for code examples in "Advanced User Guide" (#14413) 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 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
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
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
Neizvestnyj efdafa4361
📝 Update `tutorial/security/oauth2-jwt/` to use `pwdlib` with Argon2 instead of `passlib` (#13917) 8 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
Arnaud Durand e902ed5fc6
📝 Bring the `scope` claim in line with the standard in `docs_src/security/tutorial005.py` (#11189) 9 months ago
Joakim Nordling 8fa56b46a1
⬆️ Update ReDoc to version 2.x (#9700) 1 year ago
Sebastián Ramírez 2537d9d1c2
🐛 Fix `convert_underscores=False` for header Pydantic models (#13515) 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
Hyogeun Oh (오효근) e157cf4b96
🐛 Fix issue with Swagger theme change example in the official tutorial (#13289) 1 year ago
Sebastián Ramírez 08b817a842
🔥 Remove manual type annotations in JWT tutorial to avoid typing expectations (JWT doesn't provide more types) (#13378) 1 year ago
Sebastián Ramírez 9ec452a154
📝 Update docs for Query Params and String Validations, remove obsolete Ellipsis docs (`...`) (#13377) 1 year ago
Ysabel 9667ce87a9
📝 Update Request Body's `tutorial002` to deal with `tax=0` case (#13230) 1 year ago
Kinuax b0e70cb37e
✏️ Update Strawberry integration docs (#13155) 1 year ago
Alejandra d784a90207
🔥 Remove unused Peewee tutorial files (#13158) 1 year ago
Sebastián Ramírez 1c711e7147
📝 Update includes format in docs with an automated script (#12950) 2 years ago
Sebastián Ramírez 5c080d81ae
📝 Update includes for `docs/en/docs/tutorial/schema-extra-example.md` (#12822) 2 years ago
José Pacheco 8ae4603d68
🐛 Remove `Required` shadowing from fastapi using Pydantic v2 (#12197) 2 years ago
Sebastián Ramírez 7daaac2bc3
Add new tutorial for SQL databases with SQLModel (#12285) 2 years ago
Sebastián Ramírez 55035f440b
Add support for Pydantic models for parameters using `Query`, `Cookie`, `Header` (#12199) 2 years ago