yogishhg9964
71c441e471
Add support for HTTP QUERY method
- Implement query() method in APIRouter and FastAPI classes
- Add comprehensive test suite for QUERY method functionality
- Include documentation examples demonstrating QUERY usage
- Follow IETF draft-ietf-httpbis-safe-method-w-body-02 specification
- Enables complex queries with request bodies for GraphQL-like functionality
- Maintains full backward compatibility with existing HTTP methods
Resolves: Request for QUERY method support in GitHub issues
Addresses: Need for safe HTTP method that allows request bodies
5 days ago
Chih-Hsuan Yen
54c7c34b25
⬆ Update httpx requirement to >=0.23.0,<0.29.0 ( #13114 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 week ago
Patrick Arminio
9d0d8828cc
🐛 Fix support for unions when using `Form` ( #13827 )
1 month ago
oogee
30b9dfb11c
🚸 Set format to password for fields `password` and `client_secret` in `OAuth2PasswordRequestForm`, make docs show password fields for passwords ( #11032 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2 months ago
Valentyn
85a2eed888
✅ Simplify tests for `settings` ( #13505 )
Co-authored-by: Valentyn Druzhynin <v.druzhynin@zakaz.global>
2 months ago
Valentyn
da4605b039
✅ Simplify tests for `validate_response_recursive` ( #13507 )
Co-authored-by: Valentyn Druzhynin <v.druzhynin@zakaz.global>
2 months ago
Motov Yurii
535d5b3f9f
🐛 Fix truncating the model's description with form feed (`\f`) character for Pydantic V2 ( #13698 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2 months ago
Joakim Nordling
8fa56b46a1
⬆️ Update ReDoc to version 2.x ( #9700 )
Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
3 months ago
Frank Hoffmann
ea42ebda80
✅ Use `inline-snapshot` to support different Pydantic versions in the test suite ( #12534 )
Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
3 months ago
Sebastián Ramírez
2537d9d1c2
🐛 Fix `convert_underscores=False` for header Pydantic models ( #13515 )
4 months 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] <support@github.com>
* update pre-commit accordingly and make formatting changes
* 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
Co-authored-by: svlandeg <sofie.vanlandeghem@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
5 months 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
.
5 months ago
Victorien
15dd2b67d3
♻️ Update internal annotation usage for compatibilty with Pydantic 2.11 ( #13314 )
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: svlandeg <svlandeg@github.com>
5 months ago
alv2017
7eabff43de
✅ Fix a minor bug in the test `tests/test_modules_same_name_body/test_main.py` ( #13411 )
5 months ago
Arthur Rio
ccc7c8fef9
🐛 Ensure that `HTTPDigest` only raises an exception when `auto_error is True` ( #2939 )
Co-authored-by: svlandeg <sofie.vanlandeghem@gmail.com>
5 months ago
Hyogeun Oh (오효근)
e157cf4b96
🐛 Fix issue with Swagger theme change example in the official tutorial ( #13289 )
6 months ago
alv2017
5451d05bc8
✅ Simplify tests for `query_params_str_validations` ( #13218 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
6 months ago
alv2017
f6872dd298
✅ Simplify tests for `app_testing` ( #13220 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
6 months ago
alv2017
1e6d95ce6d
✅ Simplify tests for `dependency_testing` ( #13223 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
6 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 <90076947+alejsdev@users.noreply.github.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: svlandeg <svlandeg@github.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
6 months ago
Alejandra
c5b5af7c53
✅ Simplify tests for request_files ( #13182 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
6 months ago
Alejandra
280fe73c03
✅ Simplify tests for websockets ( #13202 )
7 months ago
Alejandra
182c28e57a
✅ Simplify tests for request_form_models ( #13183 )
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
7 months ago
Alejandra
39698df806
✅ Simplify tests for separate_openapi_schemas ( #13201 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
7 months ago
Alejandra
2007993433
✅ Simplify tests for security ( #13200 )
7 months ago
Alejandra
3e12918325
✅ Simplify tests for schema_extra_example ( #13197 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
7 months ago
Alejandra
081901cc99
✅ Simplify tests for request_model ( #13195 )
7 months ago
Alejandra
d309c9e140
✅ Simplify tests for request_forms_and_files ( #13185 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
7 months ago
Alejandra
c7d888a15f
✅ Simplify tests for request_forms ( #13184 )
7 months ago
Alejandra
09ccfce228
✅ Simplify tests for path_query_params ( #13181 )
7 months ago
Alejandra
2e8db846b4
✅ Simplify tests for path_operation_configurations ( #13180 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
7 months ago
Alejandra
aa60185781
✅ Simplify tests for header_params ( #13179 )
7 months ago
Alejandra
3d017824ba
✅ Simplify tests for extra_models ( #13178 )
7 months ago
Alejandra
8015f832d4
✅ Simplify tests for extra_data_types ( #13177 )
7 months ago
Alejandra
736712173a
✅ Simplify tests for cookie_params ( #13176 )
7 months ago
Alejandra
920df4d1ac
✅ Simplify tests for dependencies ( #13174 )
7 months ago
Alejandra
0a882e926e
✅ Simplify tests for body_updates ( #13172 )
7 months ago
Alejandra
55ef9270b8
✅ Simplify tests for body_nested_models ( #13171 )
7 months ago
Alejandra
1cedd8becf
✅ Simplify tests for body_multiple_params ( #13170 )
7 months ago
Alejandra
9b88c7c18a
✅ Simplify tests for body_fields ( #13169 )
7 months ago
Alejandra
0cc031f477
✅ Simplify tests for body ( #13168 )
7 months ago
Alejandra
5d3f45c2d4
✅ Simplify tests for bigger_applications ( #13167 )
7 months ago
Alejandra
44adb29ce1
✅ Simplify tests for background_tasks ( #13166 )
7 months ago
Sebastián Ramírez
994340f839
✅ Simplify tests for additional_status_codes ( #13149 )
7 months ago
Sebastián Ramírez
4881d1e225
📝 Update docs for `fastapi-cli` ( #13031 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
8 months ago
Abdullah Hashim
4f8157588e
🐛 Preserve traceback when exception is raised in sync dependency with `yield` ( #5823 )
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
8 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>
8 months ago
Sebastián Ramírez
5c080d81ae
📝 Update includes for `docs/en/docs/tutorial/schema-extra-example.md` ( #12822 )
9 months ago
Sebastián Ramírez
b31cbbf5f5
♻️ Update logic to import and check `python-multipart` for compatibility with newer version ( #12627 )
9 months ago
Felix Fanghaenel
e049fc4ea1
🐛 Fix openapi generation with responses kwarg ( #10895 )
Co-authored-by: flxdot <felix.fanghaenel@nitrex.com>
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Sławek Ehlert <slawomir.ehlert@gmail.com>
10 months ago