✨ Allow setting the response_class to RedirectResponse or FileResponse and returning the URL from the function. New and updated docs are in the tutorial section Custom Response - HTML, Stream, File, others, in RedirectResponse and in FileResponse. PR #3457 by @tiangolo.
Fixes
🐛 Fix include/exclude for dicts in jsonable_encoder. PR #2016 by @Rubikoid.
🐛 Support custom OpenAPI / JSON Schema fields in the generated output OpenAPI. PR #1429 by @jmagnusson.
Translations
🌐 Add Spanish translation for tutorial/query-params.md. PR #2243 by @mariacamilagl.
🌐 Add Spanish translation for advanced/response-directly.md. PR #1253 by @jfunez.
🌐 Add Spanish translation for advanced/additional-status-codes.md. PR #1252 by @jfunez.
🌐 Add Spanish translation for advanced/path-operation-advanced-configuration.md. PR #1251 by @jfunez.
0.65.3
Fixes
♻ Assume request bodies contain JSON when no Content-Type header is provided. This fixes a breaking change introduced by [0.65.2 with PR #2118](tiangolo/fastapi#2118). It should allow upgrading FastAPI applications with clients that send JSON data without a Content-Type header. And there's still protection against CSRFs. PR #3456 by @tiangolo.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps fastapi from 0.65.2 to 0.66.0.
Release notes
Sourced from fastapi's releases.
Commits
7e9d5aa
🔖 Release version 0.66.0d27a218
📝 Update release notes0c4ded8
📝 Update release notes0e0931d
🐛 Fix include/exclude for dicts injsonable_encoder
(#2016)dcfa9eb
📝 Update release notes6ebf60b
🌐 Add Spanish translation fortutorial/query-params.md
(#2243)a4d0724
📝 Update release notesc235e9b
🌐 Add Spanish translation foradvanced/response-directly.md
(#1253)5fa3e23
📝 Update release notes3d1b107
🌐 Add Spanish translation foradvanced/additional-status-codes.md
(#1252)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)