Matt Hartigan
dec8c81319
fix: replace assert with raise FastAPIError in routing.py
Three `assert isinstance(...)` guards in routing.py are used as runtime
checks for required ASGI scope keys (fastapi_middleware_astack,
fastapi_inner_astack). Under `python -O`, all assert statements are
stripped, converting these diagnostic guards into silent AttributeError
exceptions with no context.
Replace with explicit `if not isinstance(...): raise FastAPIError(...)`
to preserve the error messages regardless of Python optimization level.
Affects:
- get_request_handler() HTTP middleware stack check (line 349)
- get_request_handler() HTTP dependency stack check (line 418)
- get_websocket_app() WebSocket dependency stack check (line 514)
5 months ago
Sebastián Ramírez
daba0aa328
🔖 Release version 0.133.0
5 months ago
github-actions[bot]
0c3581d5c4
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
c73bc94537
⬆️ Add support for Starlette 1.0.0+ ( #14987 )
5 months ago
Sebastián Ramírez
6c68838615
🔖 Release version 0.132.1
5 months ago
github-actions[bot]
29d082ba24
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
2686c7fbbf
♻️ Refactor logic to handle OpenAPI and Swagger UI escaping data ( #14986 )
5 months ago
github-actions[bot]
2f9c914d44
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
0cf27ecf88
👥 Update FastAPI People - Experts ( #14972 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <[email protected] >
5 months ago
github-actions[bot]
3f30ca1a5e
📝 Update release notes
[skip ci]
5 months ago
Motov Yurii
6af3832126
👷 Allow skipping `benchmark` job in `test` workflow ( #14974 )
5 months ago
Sebastián Ramírez
acdf52e0c8
📝 Update release notes
5 months ago
Sebastián Ramírez
5c863d0718
🔖 Release version 0.132.0
5 months ago
github-actions[bot]
ac8621a76e
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
22354a2530
🔒 ️ Add `strict_content_type` checking for JSON requests ( #14978 )
5 months ago
github-actions[bot]
94a1ee749e
📝 Update release notes
[skip ci]
5 months ago
dependabot[bot]
248d7fb9f5
⬆ Bump flask from 3.1.2 to 3.1.3 ( #14949 )
Bumps [flask](https://github.com/pallets/flask ) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/flask/releases )
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/flask/compare/3.1.2...3.1.3 )
---
updated-dependencies:
- dependency-name: flask
dependency-version: 3.1.3
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months ago
github-actions[bot]
da1937443d
📝 Update release notes
[skip ci]
5 months ago
Sofie Van Landeghem
5161f7b42b
⬆ Update all dependencies to use `griffelib` instead of `griffe` ( #14973 )
* update to griffelib
* also update pydantic-ai
* move griffelib to get better GH diff
* restore accidental edit
5 months ago
github-actions[bot]
fef2ce70d9
📝 Update release notes
[skip ci]
5 months ago
Motov Yurii
a3c8c37272
🔨 Fix `FastAPI People` workflow ( #14951 )
5 months ago
github-actions[bot]
2826124378
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
4da264f0f3
👷 Do not run codspeed with coverage as it's not tracked ( #14966 )
5 months ago
github-actions[bot]
c5559a66dd
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
1cea8f659c
👷 Do not include benchmark tests in coverage to speed up coverage processing ( #14965 )
5 months ago
Sebastián Ramírez
b423b73c35
🔖 Release version 0.131.0
5 months ago
github-actions[bot]
70e8558352
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
48e9835732
🗑️ Deprecate `ORJSONResponse` and `UJSONResponse` ( #14964 )
5 months ago
Sebastián Ramírez
2e62fb1513
📝 Update release notes
5 months ago
Sebastián Ramírez
eb544e704c
🔖 Release version 0.130.0
5 months ago
github-actions[bot]
bc06e4296d
📝 Update release notes
[skip ci]
5 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 )
5 months ago
Sebastián Ramírez
1e78a36b73
🔖 Release version 0.129.2
5 months ago
github-actions[bot]
f921de6495
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
4ab8138554
⬆️ Upgrade pytest ( #14959 )
5 months ago
github-actions[bot]
468d5173ed
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
c9455d5400
👷 Fix CI, do not attempt to publish `fastapi-slim` ( #14958 )
5 months ago
github-actions[bot]
69ae1d0f28
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
083b6ebe9e
➖ Drop support for `fastapi-slim`, no more versions will be released, use only `"fastapi[standard]"` or `fastapi` ( #14957 )
5 months ago
github-actions[bot]
1b9a351ee8
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
f55ab7e020
🔧 Update pyproject.toml, remove unneeded lines ( #14956 )
5 months ago
Sebastián Ramírez
c91fed958e
🔖 Release version 0.129.1
5 months ago
Sebastián Ramírez
04ff07fecd
📝 Update release notes
5 months ago
github-actions[bot]
1bf99b9a11
📝 Update release notes
[skip ci]
5 months ago
Sebastián Ramírez
e8b98d2187
🐛 Fix JSON Schema for files, use `contentMediaType` instead of `format: binary` ( #14953 )
5 months ago
github-actions[bot]
d2c17b603d
📝 Update release notes
[skip ci]
5 months ago
Motov Yurii
cf058239d1
👷 Always run tests on push to `master` branch and when run by scheduler ( #14940 )
5 months ago
github-actions[bot]
c44158384c
📝 Update release notes
[skip ci]
5 months ago
argoarsiks
3bdf470622
✏️ Fix several typos in ru translations ( #14934 )
* docs: fix typos
* Apply suggestion from @YuriiMotov
---------
Co-authored-by: Motov Yurii <[email protected] >
5 months ago
github-actions[bot]
d178b95695
📝 Update release notes
[skip ci]
5 months ago