Arif Dogan
5c4055c3ea
Refactor JSON error handling in routing and tests for improvements.
9 months ago
Sebastián Ramírez
e329d78f86
🐛 Fix support for `StreamingResponse`s with dependencies with `yield` or `UploadFile`s, close after the response is done ( #14099 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
9 months ago
Amogha Rao
5fef4d199b
✅ Enable test case for duplicated headers in `test_tutorial/test_header_params/test_tutorial003.py` ( #13864 )
Co-authored-by: amogha-rao <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
9 months ago
山崎ヒカル
11d424c3dc
✅ Simplify tests for response_model ( #14062 )
9 months ago
Arif Dogan
93e98d5cb7
Refactor code for improved readability and update tests to handle Pydantic v1 and v2 differences.
10 months ago
pre-commit-ci[bot]
9a5da94657
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
10 months ago
Arif Dogan
6b907a57f8
feat: enhance JSON parse errors with line/column info and snippets
column positions and error snippets to JSON decode errors for
better debugging experience. Updates error location format and provides
context around the problematic JSON.
10 months ago
Sebastián Ramírez
f5b77ff0fc
📝 Add documentation for Behind a Proxy - Proxy Forwarded Headers, using `--forwarded-allow-ips="*"` ( #14028 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
10 months ago
z0z0r4
d4ddcc5878
📝 Update testing events documentation ( #13259 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: Sebastián Ramírez <[email protected] >
10 months 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>
11 months 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>
1 year ago
Valentyn
85a2eed888
✅ Simplify tests for `settings` ( #13505 )
Co-authored-by: Valentyn Druzhynin <[email protected] >
1 year ago
Joakim Nordling
8fa56b46a1
⬆️ Update ReDoc to version 2.x ( #9700 )
Co-authored-by: svlandeg <[email protected] >
Co-authored-by: Sebastián Ramírez <[email protected] >
Co-authored-by: Sofie Van Landeghem <[email protected] >
1 year ago
Frank Hoffmann
ea42ebda80
✅ Use `inline-snapshot` to support different Pydantic versions in the test suite ( #12534 )
Co-authored-by: svlandeg <[email protected] >
Co-authored-by: Sofie Van Landeghem <[email protected] >
1 year ago
Sebastián Ramírez
2537d9d1c2
🐛 Fix `convert_underscores=False` for header Pydantic models ( #13515 )
1 year 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 year 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 year ago
Hyogeun Oh (오효근)
e157cf4b96
🐛 Fix issue with Swagger theme change example in the official tutorial ( #13289 )
1 year 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 <[email protected] >
1 year 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 <[email protected] >
1 year 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 <[email protected] >
1 year 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] >
1 year ago
Alejandra
c5b5af7c53
✅ Simplify tests for request_files ( #13182 )
Co-authored-by: Sebastián Ramírez <[email protected] >
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 year ago
Alejandra
280fe73c03
✅ Simplify tests for websockets ( #13202 )
1 year ago
Alejandra
182c28e57a
✅ Simplify tests for request_form_models ( #13183 )
Co-authored-by: Sofie Van Landeghem <[email protected] >
1 year 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>
1 year ago
Alejandra
2007993433
✅ Simplify tests for security ( #13200 )
1 year 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>
1 year ago
Alejandra
081901cc99
✅ Simplify tests for request_model ( #13195 )
1 year 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>
1 year ago
Alejandra
c7d888a15f
✅ Simplify tests for request_forms ( #13184 )
1 year ago
Alejandra
09ccfce228
✅ Simplify tests for path_query_params ( #13181 )
1 year 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>
1 year ago
Alejandra
aa60185781
✅ Simplify tests for header_params ( #13179 )
1 year ago
Alejandra
3d017824ba
✅ Simplify tests for extra_models ( #13178 )
1 year ago
Alejandra
8015f832d4
✅ Simplify tests for extra_data_types ( #13177 )
1 year ago
Alejandra
736712173a
✅ Simplify tests for cookie_params ( #13176 )
1 year ago
Alejandra
920df4d1ac
✅ Simplify tests for dependencies ( #13174 )
1 year ago
Alejandra
0a882e926e
✅ Simplify tests for body_updates ( #13172 )
1 year ago
Alejandra
55ef9270b8
✅ Simplify tests for body_nested_models ( #13171 )
1 year ago
Alejandra
1cedd8becf
✅ Simplify tests for body_multiple_params ( #13170 )
1 year ago
Alejandra
9b88c7c18a
✅ Simplify tests for body_fields ( #13169 )
1 year ago
Alejandra
0cc031f477
✅ Simplify tests for body ( #13168 )
1 year ago
Alejandra
5d3f45c2d4
✅ Simplify tests for bigger_applications ( #13167 )
1 year ago
Alejandra
44adb29ce1
✅ Simplify tests for background_tasks ( #13166 )
1 year ago
Sebastián Ramírez
994340f839
✅ Simplify tests for additional_status_codes ( #13149 )
2 years 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>
2 years ago
Sebastián Ramírez
5c080d81ae
📝 Update includes for `docs/en/docs/tutorial/schema-extra-example.md` ( #12822 )
2 years ago
Sebastián Ramírez
7daaac2bc3
✨ Add new tutorial for SQL databases with SQLModel ( #12285 )
2 years ago
Sebastián Ramírez
55035f440b
✨ Add support for Pydantic models for parameters using `Query`, `Cookie`, `Header` ( #12199 )
2 years ago