Motov Yurii
3063ada72f
✅ Add missing tests for code examples ( #14569 )
Co-authored-by: Sebastián Ramírez <[email protected] >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nils-Hero Lindemann <[email protected] >
7 months ago
Sebastián Ramírez
e2cd8a4201
➖ Drop support for Pydantic v1, keeping short temporary support for Pydantic v2's `pydantic.v1` ( #14575 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
7 months ago
Paras Verma
d70ed5eceb
📝 Fix duplicated variable in `docs_src/python_types/tutorial005_py39.py` ( #14565 )
Fix duplicated variable in python types example
7 months ago
Sebastián Ramírez
1c4fc96c91
♻️ Upgrade internal syntax to Python 3.9+ 🎉 ( #14564 )
7 months ago
Sebastián Ramírez
ed97d9dc0c
⚰️ Remove Python 3.8 from CI and remove Python 3.8 examples from source docs ( #14559 )
Co-authored-by: Yurii Motov <[email protected] >
Co-authored-by: Motov Yurii <[email protected] >
7 months ago
Sebastián Ramírez
cd9d093f60
📝 Update docs about re-raising validation errors, do not include string as is to not leak information ( #14487 )
7 months ago
Motov Yurii
9475024640
📝 Add variants for code examples in "Advanced User Guide" ( #14413 )
7 months ago
Motov Yurii
51ad909ffe
🐛 Use `401` status code in security classes when credentials are missing ( #13786 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <[email protected] >
8 months ago
Sebastián Ramírez
ac438b9934
✨ Add support for dependencies with scopes, support `scope="request"` for dependencies with `yield` that exit before the response is sent ( #14262 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
9 months ago
Sebastián Ramírez
d34918abf0
✨ Add support for `from pydantic.v1 import BaseModel`, mixed Pydantic v1 and v2 models in the same app ( #14168 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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>
10 months ago
Neizvestnyj
efdafa4361
📝 Update `tutorial/security/oauth2-jwt/` to use `pwdlib` with Argon2 instead of `passlib` ( #13917 )
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: Sebastián Ramírez <[email protected] >
10 months ago
Ben Beasley
7563579dc8
⬆️ Upgrade Starlette supported version range to >=0.40.0,<0.49.0 ( #14077 )
Co-authored-by: svlandeg <[email protected] >
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>
11 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] >
11 months ago
Arnaud Durand
e902ed5fc6
📝 Bring the `scope` claim in line with the standard in `docs_src/security/tutorial005.py` ( #11189 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected] >
11 months ago
Baha Rahmouni
3797c3ca61
Add API Key Header authentication documentation
- Addresses issue #142 (32 👍 from community)
- Add comprehensive API Key authentication tutorial
- Include both simple and complete examples
- Add full test coverage (7 test cases)
- Integrate into existing security documentation
Files added:
- docs/en/docs/tutorial/security/api-key.md: Complete tutorial
- docs_src/security/tutorial_api_key_header.py: Full example
- docs_src/security/tutorial_api_key_simple.py: Simple example
- tests/test_tutorial_api_key_header.py: Test suite
Files modified:
- docs/en/docs/tutorial/security/index.md: Updated navigation
11 months 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
Sebastián Ramírez
2537d9d1c2
🐛 Fix `convert_underscores=False` for header Pydantic models ( #13515 )
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
Sebastián Ramírez
08b817a842
🔥 Remove manual type annotations in JWT tutorial to avoid typing expectations (JWT doesn't provide more types) ( #13378 )
1 year ago
Sebastián Ramírez
9ec452a154
📝 Update docs for Query Params and String Validations, remove obsolete Ellipsis docs (`...`) ( #13377 )
1 year ago
Ysabel
9667ce87a9
📝 Update Request Body's `tutorial002` to deal with `tax=0` case ( #13230 )
Co-authored-by: svlandeg <[email protected] >
1 year ago
Kinuax
b0e70cb37e
✏️ Update Strawberry integration docs ( #13155 )
2 years ago
Alejandra
d784a90207
🔥 Remove unused Peewee tutorial files ( #13158 )
2 years ago
Sebastián Ramírez
1c711e7147
📝 Update includes format in docs with an automated script ( #12950 )
2 years ago
Sebastián Ramírez
5c080d81ae
📝 Update includes for `docs/en/docs/tutorial/schema-extra-example.md` ( #12822 )
2 years 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] >
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
Sebastián Ramírez
4633b1bca9
✨ Add support for forbidding extra form fields with Pydantic models ( #12134 )
Co-authored-by: Sofie Van Landeghem <[email protected] >
2 years 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 .
2 years 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 .
2 years ago
Sebastián Ramírez
0f3e65b007
✨ Add support for Pydantic models in `Form` parameters ( #12127 )
2 years ago
Marcin Sulikowski
6e98249c21
📝 Fix async test example not to trigger DeprecationWarning ( #12084 )
2 years ago
Muhammad Ashiq Ameer
9b35d355bf
📝 Update `docs_src/path_params_numeric_validations/tutorial006.py` ( #11478 )
Co-authored-by: Sofie Van Landeghem <[email protected] >
2 years ago
Jun-Ah 준아
265dbeb663
📝 Add missing `compresslevel` parameter on docs for `GZipMiddleware` ( #11350 )
Co-authored-by: Sebastián Ramírez <[email protected] >
2 years ago
Luke Okomilo
2cb1333b97
📝 Fix inconsistent response code when item already exists in docs for testing ( #11818 )
Co-authored-by: Sebastián Ramírez <[email protected] >
2 years ago
Dom
7ff5da8bf2
edit middleware docs code sample to use perf_counter as a timer
2 years ago
jianghuyiyuan
2e35b176cf
✏️ Fix typos in docs ( #11926 )
2 years ago
Nir Schulman
a69f38340f
📝 Restored Swagger-UI links to use the latest version possible. ( #11459 )
2 years ago
Esteban Maya
5fa8e38681
📝 Update JWT auth documentation to use PyJWT instead of pyhon-jose ( #11589 )
Co-authored-by: Motov Yurii <[email protected] >
Co-authored-by: Sebastián Ramírez <[email protected] >
2 years ago
Nils Lindemann
6d523d62d0
📝 Fix types in examples under `docs_src/extra_data_types` ( #10535 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastián Ramírez <[email protected] >
2 years ago
Sebastián Ramírez
27da0d02a7
✨ Add support for Pydantic's 2.7 new deprecated Field parameter, remove URL from validation errors response ( #11461 )
2 years ago
Charlie Marsh
5ccc869fee
⬆️ Upgrade configuration for Ruff v0.2.0 ( #11075 )
2 years ago
Alejandra
93034fea48
📝 Update links to Pydantic docs to point to new website ( #11328 )
2 years ago
Alejandra
aff139ee90
🛠️ Improve Node.js script in docs to generate TypeScript clients ( #11293 )
2 years ago
bebop
478288700a
📝 Update examples for tests to replace "inexistent" for "nonexistent" ( #11220 )
2 years ago
Sebastián Ramírez
bf771bd781
🐛 Fix unhandled growing memory for internal server errors, refactor dependencies with `yield` and `except` to require raising again as in regular Python ( #11191 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2 years ago