Commit Graph

784 Commits

Author SHA1 Message Date
letmetry-oss 20e0abbeab Fix jsonable_encoder custom encoders for Pydantic models 2026-03-15 22:52:13 +05:30
Sofie Van Landeghem 98b269b51e
👷 Add `ty` to precommit (#15091)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
2026-03-15 12:44:39 +01:00
Motov Yurii 8b0090c39b
📝 Fix doctrings for `max_digits` and `decimal_places` (#14944)
Fix doctrings for `max_digits` and `decimal_places`
2026-03-04 13:52:48 +01:00
Sebastián Ramírez ca5f60ee72 🔖 Release version 0.135.1 2026-03-01 19:17:26 +01:00
Sebastián Ramírez 8a9258b169
🐛 Fix, avoid yield from a TaskGroup, only as an async context manager, closed in the request async exit stack (#15038) 2026-03-01 19:16:03 +01:00
Sebastián Ramírez 924a535a4f
📝 Update Skill, optimize context, trim and refactor into references (#15031) 2026-03-01 10:05:57 +00:00
Sebastián Ramírez 12ea7be0be 🔖 Release version 0.135.0 2026-03-01 10:27:00 +01:00
Sebastián Ramírez 2238155844
Add support for Server Sent Events (#15030) 2026-03-01 10:21:52 +01:00
Sebastián Ramírez d98eb74da9 🔖 Release version 0.134.0 2026-02-27 22:12:57 +01:00
Sebastián Ramírez c01dc8b03c
📝 Update Library Agent Skill with streaming responses (#15024) 2026-02-27 21:03:51 +00:00
Sebastián Ramírez 749cefdeb1
Add support for streaming JSON Lines and binary data with `yield` (#15022) 2026-02-27 19:56:47 +01:00
Sebastián Ramírez 728b097564 🔖 Release version 0.133.1 2026-02-25 19:13:57 +01:00
Sebastián Ramírez 4fce9ce172
🔧 Add FastAPI Agents Skill (#14982)
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
2026-02-25 19:10:48 +01:00
Sebastián Ramírez daba0aa328 🔖 Release version 0.133.0 2026-02-24 10:51:43 +01:00
Sebastián Ramírez 6c68838615 🔖 Release version 0.132.1 2026-02-24 10:32:08 +01:00
Sebastián Ramírez 2686c7fbbf
♻️ Refactor logic to handle OpenAPI and Swagger UI escaping data (#14986) 2026-02-24 09:28:10 +00:00
Sebastián Ramírez 5c863d0718 🔖 Release version 0.132.0 2026-02-23 18:49:58 +01:00
Sebastián Ramírez 22354a2530
🔒️ Add `strict_content_type` checking for JSON requests (#14978) 2026-02-23 18:45:20 +01:00
Sebastián Ramírez b423b73c35 🔖 Release version 0.131.0 2026-02-22 17:36:21 +01:00
Sebastián Ramírez 48e9835732
🗑️ Deprecate `ORJSONResponse` and `UJSONResponse` (#14964) 2026-02-22 17:34:59 +01:00
Sebastián Ramírez eb544e704c 🔖 Release version 0.130.0 2026-02-22 17:14:53 +01:00
Sebastián Ramírez 590a5e5355
Serialize JSON response with Pydantic (in Rust), when there's a Pydantic return type or response model (#14962) 2026-02-22 17:07:19 +01:00
Sebastián Ramírez 1e78a36b73 🔖 Release version 0.129.2 2026-02-21 18:24:59 +01:00
Sebastián Ramírez c91fed958e 🔖 Release version 0.129.1 2026-02-21 14:08:06 +01:00
Sebastián Ramírez e8b98d2187
🐛 Fix JSON Schema for files, use `contentMediaType` instead of `format: binary` (#14953) 2026-02-21 14:01:31 +01:00
Sebastián Ramírez a2e51363c7 🔖 Release version 0.129.0 2026-02-12 14:52:27 +01:00
Sebastián Ramírez 3da206c06d
🎨 Update internal types for Python 3.10 (#14898) 2026-02-11 18:41:21 +00:00
Sebastián Ramírez ad4e8e0060
Drop support for Python 3.9 (#14897)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-11 19:32:12 +01:00
Sebastián Ramírez bdd20051c4 🔖 Release version 0.128.8 2026-02-11 16:16:34 +01:00
Sebastián Ramírez 8f82c94de0 🔖 Release version 0.128.7 2026-02-10 13:24:38 +01:00
Sebastián Ramírez 25270fcee0
♻️ Simplify reading files in memory, do it sequentially instead of (fake) parallel (#14884) 2026-02-10 12:36:53 +01:00
Javier Sánchez Castro df950111fe
Show a clear error on attempt to include router into itself (#14258)
Co-authored-by: Javier Sánchez <javier.sanchez.castro@bookline.ai>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
2026-02-10 11:58:40 +01:00
rijenkii 66dc695071
Replace `dict` by `Mapping` on `HTTPException.headers` (#12997)
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-02-10 11:52:24 +01:00
Sebastián Ramírez 0a4033aeee 🔖 Release version 0.128.6 2026-02-09 18:19:22 +01:00
Motov Yurii ed2512a5ec
🐛 Fix `on_startup` and `on_shutdown` parameters of `APIRouter` (#14873)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-02-09 17:31:57 +01:00
Sebastián Ramírez dedf1409fe 🔖 Release version 0.128.5 2026-02-08 11:20:22 +01:00
Sebastián Ramírez 2e7d3754cd
♻️ Refactor and simplify Pydantic v2 (and v1) compatibility internal utils (#14862) 2026-02-07 08:34:32 +00:00
Sebastián Ramírez 8eac94bd91 🔖 Release version 0.128.4 2026-02-07 09:12:54 +01:00
Sebastián Ramírez d59fbc3494
♻️ Refactor internals, simplify Pydantic v2/v1 utils, `create_model_field`, better types for `lenient_issubclass` (#14860) 2026-02-07 08:08:07 +00:00
Sebastián Ramírez cf55bade7e
♻️ Simplify internals, remove Pydantic v1 only logic, no longer needed (#14857) 2026-02-06 19:04:24 +00:00
Sebastián Ramírez 3c49346238
♻️ Refactor internals, cleanup unneeded Pydantic v1 specific logic (#14856) 2026-02-06 19:01:05 +01:00
Sebastián Ramírez 36985f5f25 🔖 Release version 0.128.3 2026-02-06 17:44:11 +01:00
Sebastián Ramírez f9f7992604
♻️ Re-implement `on_event` in FastAPI for compatibility with the next Starlette, while keeping backwards compatibility (#14851) 2026-02-06 16:18:30 +01:00
Sebastián Ramírez 79406a4b04 🔖 Release version 0.128.2 2026-02-05 20:46:37 +01:00
Kanetsuna Masaya c5fd75a321
🐛 Fix using `Json[list[str]]` type (issue #10997) (#14616)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2026-02-05 18:41:43 +00:00
Albin Skott 97145588f5
Add support for PEP695 `TypeAliasType` (#13920)
Co-authored-by: lokidev <torsten.zielke@protonmail.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2026-02-05 18:34:34 +00:00
Jonathan Fulton b49435becd
Allow `Response` type hint as dependency annotation (#14794)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2026-02-05 18:23:16 +00:00
Sebastián Ramírez 1de0de56c8 🔖 Release version 0.128.1 2026-02-04 18:33:29 +01:00
Jonathan Fulton 75c47187f3
🐛 Update `ValidationError` schema to include `input` and `ctx` (#14791)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-02-04 15:34:02 +01:00
Sebastián Ramírez 440bfd70a9
🎨 Tweak types for mypy (#14816) 2026-02-04 14:20:36 +00:00