JSCU-CNI
74c4c3a61a
🐛 Flatten multiple Pydantic models for parameters in path, query, header and cookie
From #12199 onwards, Pydantic models are supported for query, cookie and
header parameters. When one parameter is present, the model is flattened
in the OpenAPI spec, but when multiple are defined, they aren't.
This is confusing, and results in a confusing OpenAPI spec. Since these
arguments are used in flattened form anyway, it makes more sense to
flatten all of them.
6 months ago
Sebastián Ramírez
628c34e0ca
🔖 Release version 0.115.12
2 weeks ago
Sebastián Ramírez
2537d9d1c2
🐛 Fix `convert_underscores=False` for header Pydantic models ( #13515 )
2 weeks ago
dependabot[bot]
8c94e97c89
⬆ Bump ruff to 0.9.4 ( #13299 )
* ⬆ Bump ruff from 0.6.4 to 0.9.4
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.6.4 to 0.9.4.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.4...0.9.4 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected] >
* update pre-commit accordingly and make formatting changes
* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
---------
Signed-off-by: dependabot[bot] <[email protected] >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alejandra <[email protected] >
Co-authored-by: svlandeg <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 month ago
Sebastián Ramírez
3824664620
🔖 Release version 0.115.11
1 month ago
Sebastián Ramírez
74fe89bf35
🐛 Add docs examples and tests (support) for `Annotated` custom validations, like `AfterValidator`, revert #13440 ( #13442 )
This reverts commit 15dd2b67d3
.
1 month ago
Sebastián Ramírez
433837d9ca
🔖 Release version 0.115.10
1 month ago
Victorien
15dd2b67d3
♻️ Update internal annotation usage for compatibilty with Pydantic 2.11 ( #13314 )
Co-authored-by: Sofie Van Landeghem <[email protected] >
Co-authored-by: svlandeg <[email protected] >
1 month ago
Sebastián Ramírez
d90030c1e2
🔖 Release version 0.115.9
1 month ago
Arthur Rio
ccc7c8fef9
🐛 Ensure that `HTTPDigest` only raises an exception when `auto_error is True` ( #2939 )
Co-authored-by: svlandeg <[email protected] >
1 month ago
Sebastián Ramírez
7128971f1d
🔖 Release version 0.115.8
2 months ago
Shahriyar Rzayev
30b270be9a
♻️ Move duplicated code portion to a static method in the `APIKeyBase` super class ( #3142 )
Co-authored-by: Sofie Van Landeghem <[email protected] >
Co-authored-by: svlandeg <[email protected] >
2 months ago
Rahul Pai
d5ecbaceae
🐛 Fix `OAuth2PasswordRequestForm` and `OAuth2PasswordRequestFormStrict` fixed `grant_type` "password" RegEx ( #9783 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alejandra <[email protected] >
Co-authored-by: Sofie Van Landeghem <[email protected] >
Co-authored-by: svlandeg <[email protected] >
Co-authored-by: Sebastián Ramírez <[email protected] >
2 months ago
Sebastián Ramírez
fe513719ea
🔖 Release version 0.115.7
3 months ago
Sebastián Ramírez
bb8c2a6498
🔖 Release version 0.115.6
4 months ago
Abdullah Hashim
4f8157588e
🐛 Preserve traceback when exception is raised in sync dependency with `yield` ( #5823 )
Co-authored-by: Marcelo Trylesinski <[email protected] >
4 months ago
Tamir Duberstein
bf4fad1fda
♻️ Update tests and internals for compatibility with Pydantic >=2.10 ( #12971 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
5 months ago
Sebastián Ramírez
f057f4a067
🔖 Release version 0.115.5
5 months ago
Sebastián Ramírez
91a929319c
♻️ Update internal checks to support Pydantic 2.10 ( #12914 )
5 months ago
Sebastián Ramírez
31887b1cc6
🔖 Release version 0.115.4
5 months ago
Sebastián Ramírez
b31cbbf5f5
♻️ Update logic to import and check `python-multipart` for compatibility with newer version ( #12627 )
5 months ago
Kevin Kirsche
8081d2302e
📝 Fix minor typos ( #12516 )
6 months ago
Sebastián Ramírez
c519614b45
🔖 Release version 0.115.3
6 months ago
Sebastián Ramírez
07684aea79
🔖 Release version 0.115.2
6 months ago
Sebastián Ramírez
113da5b0a7
🔖 Release version 0.115.1
6 months ago
Felix Fanghaenel
e049fc4ea1
🐛 Fix openapi generation with responses kwarg ( #10895 )
Co-authored-by: flxdot <[email protected] >
Co-authored-by: Sofie Van Landeghem <[email protected] >
Co-authored-by: Sławek Ehlert <[email protected] >
6 months ago
José Pacheco
8ae4603d68
🐛 Remove `Required` shadowing from fastapi using Pydantic v2 ( #12197 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <[email protected] >
6 months ago
Sebastián Ramírez
40490abaa3
♻️ Update type annotations for improved `python-multipart` ( #12407 )
6 months ago
Albert Villanova del Moral
6cc24416e2
✏️ Fix docstring typos in http security ( #12223 )
Fix docstring typos in http security
7 months ago
Sebastián Ramírez
40e33e492d
🔖 Release version 0.115.0
7 months ago
Sebastián Ramírez
55035f440b
✨ Add support for Pydantic models for parameters using `Query`, `Cookie`, `Header` ( #12199 )
7 months ago
Sebastián Ramírez
2ada1615a3
🔖 Release version 0.114.2
7 months ago
Nico Tonnhofer
88d4f2cb18
🐛 Fix form field regression ( #12194 )
7 months ago
Sebastián Ramírez
212fd5e247
🔖 Release version 0.114.1
7 months ago
Sebastián Ramírez
b0eedbb580
⚡ ️ Improve performance in request body parsing with a cache for internal model fields ( #12184 )
7 months ago
Vaibhav
b60d36e753
✏️ Fix typo in `fastapi/params.py` ( #12143 )
7 months ago
Sebastián Ramírez
bde12faea2
🔖 Release version 0.114.0
7 months ago
Sebastián Ramírez
4633b1bca9
✨ Add support for forbidding extra form fields with Pydantic models ( #12134 )
Co-authored-by: Sofie Van Landeghem <[email protected] >
7 months ago
Sebastián Ramírez
d86f660302
🔖 Release version 0.113.0
7 months ago
Sebastián Ramírez
7bad7c0975
✨ Add support for Pydantic models in `Form` parameters ( #12129 )
Revert "⏪ ️ Temporarily revert "✨ Add support for Pydantic models in `Form` pa…"
This reverts commit 8e6cf9ee9c
.
7 months ago
Sebastián Ramírez
999eeb6c76
🔖 Release version 0.112.4
7 months ago
Sebastián Ramírez
8e6cf9ee9c
⏪ ️ Temporarily revert " ✨ Add support for Pydantic models in `Form` parameters" to make a checkpoint release ( #12128 )
Revert "✨ Add support for Pydantic models in `Form` parameters (#12127 )"
This reverts commit 0f3e65b007
.
7 months ago
Sebastián Ramírez
0f3e65b007
✨ Add support for Pydantic models in `Form` parameters ( #12127 )
7 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 )
7 months ago
Sebastián Ramírez
7213d421f5
🔖 Release version 0.112.3
7 months ago
Sebastián Ramírez
23bda0ffeb
♻️ Refactor internal `check_file_field()`, rename to `ensure_multipart_is_installed()` to clarify its purpose ( #12106 )
7 months ago
Sebastián Ramírez
d08b95ea57
♻️ Rename internal `create_response_field()` to `create_model_field()` as it's used for more than response models ( #12103 )
7 months ago
Sebastián Ramírez
5b7fa3900e
♻️ Refactor and simplify internal data from `solve_dependencies()` using dataclasses ( #12100 )
7 months ago
Sebastián Ramírez
08547e1d57
♻️ Refactor and simplify internal `analyze_param()` to structure data with dataclasses instead of tuple ( #12099 )
7 months ago
Sebastián Ramírez
581aacc4a9
♻️ Refactor and simplify dependencies data structures with dataclasses ( #12098 )
7 months ago