pre-commit-ci[bot]
|
f45531dfd5
|
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
|
10 months ago |
I531058
|
182d727cc1
|
fix: Replace type ignore comments with explicit cast calls for mypy compatibility
|
10 months ago |
I531058
|
9e8f426d52
|
fix: Add type guards for BaseModel annotation in _apply_property_names_to_definitions
|
10 months ago |
I531058
|
b768b05525
|
fix: Convert DefsRef keys to strings in _apply_property_names_to_definitions for mypy compatibility
|
10 months ago |
I531058
|
5b1362a689
|
fix: Correct import order for type annotations in test_property_names.py
|
10 months ago |
I531058
|
a3d9c5decc
|
feat: Add PropertyNames constraint support for JSON Schema propertyNames
This PR implements comprehensive support for JSON Schema propertyNames constraints
in FastAPI, resolving issue #13880.
Features:
- PropertyNames constraint class with flexible validation options
- Pattern-based constraints: PropertyNames(pattern='^prefix_')
- Length constraints: PropertyNames(min_length=3, max_length=50)
- Combined constraints: PropertyNames(pattern='^[A-Z_]+$', min_length=3, max_length=50)
- Custom schema constraints: PropertyNames(schema={'type': 'string', 'enum': ['key1', 'key2']})
- Full integration with both Pydantic v1 and v2
- Comprehensive test coverage
Usage:
from typing import Dict, Annotated
from fastapi.schema import PropertyNames
from pydantic import BaseModel
class UserConfig(BaseModel):
settings: Annotated[Dict[str, str], PropertyNames(pattern='^user_')]
The implementation correctly generates OpenAPI schemas with propertyNames
constraints, enabling proper validation of dynamic object keys in APIs.
Fixes #13880
|
10 months ago |
github-actions[bot]
|
a83a8e7a45
|
📝 Update release notes
[skip ci]
|
10 months ago |
Motov Yurii
|
04d5e659bc
|
🌐 Add Russian translations for missing pages (LLM-generated) (#14135)
* Copy En pages
* Translate pages (reviewed and corrected)
* Apply changes from latest PRs: 13917 and 14099
|
10 months ago |
github-actions[bot]
|
88a5554a44
|
📝 Update release notes
[skip ci]
|
10 months ago |
Motov Yurii
|
977abe2396
|
🌐 Update Russian translations for existing pages (LLM-generated) (#14123)
* Update Russian translations for modified pages
* docs: fix translation for multiprocessing
* Update Russian translations for other existing pages
* Apply changes from latest PRs: 13917 and 14099
---------
Co-authored-by: vldmrdev <[email protected]>
|
10 months ago |
github-actions[bot]
|
3d70b26788
|
📝 Update release notes
[skip ci]
|
10 months ago |
Sebastián Ramírez
|
e7fc394e15
|
🌐 Remove configuration files for inactive translations (#14130)
|
10 months ago |
github-actions[bot]
|
3481aad827
|
📝 Update release notes
[skip ci]
|
10 months ago |
Sebastián Ramírez
|
2f6fb12258
|
👷 Update docs previews comment, single comment, add failure status (#14129)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
10 months ago |
github-actions[bot]
|
36a3830ba2
|
📝 Update release notes
[skip ci]
|
10 months ago |
Motov Yurii
|
06367347e6
|
🔨 Modify `mkdocs_hooks.py` to add `title` to page's metadata (remove permalinks in social cards) (#14125)
|
10 months ago |
Sebastián Ramírez
|
333f1ba737
|
🔖 Release version 0.118.0
|
10 months ago |
Sebastián Ramírez
|
1d5168a4a1
|
📝 Update release notes
|
10 months ago |
github-actions[bot]
|
bfa54b406d
|
📝 Update release notes
[skip ci]
|
10 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 |
github-actions[bot]
|
861b22c408
|
📝 Update release notes
[skip ci]
|
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 |
github-actions[bot]
|
450a334253
|
📝 Update release notes
[skip ci]
|
10 months ago |
alv2017
|
3eb2ee7510
|
✏️ Fix typos in OAuth2 password request forms (#14112)
Fixed typos in OAuth2PasswordRequestForm and in OAuth2PasswordRequestFormStrict
|
10 months ago |
github-actions[bot]
|
287eb316df
|
📝 Update release notes
[skip ci]
|
10 months ago |
Nils-Hero Lindemann
|
cca3341cb9
|
🌐 Sync German docs (#14098)
* Sync German docs with #13510
* Sync German docs with #14059
---------
Co-authored-by: Motov Yurii <[email protected]>
|
10 months ago |
github-actions[bot]
|
f235502234
|
📝 Update release notes
[skip ci]
|
11 months ago |
pre-commit-ci[bot]
|
b40da4f0d5
|
⬆ [pre-commit.ci] pre-commit autoupdate (#14103)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.0 → v0.13.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.0...v0.13.1)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
11 months ago |
github-actions[bot]
|
9aa25fd682
|
📝 Update release notes
[skip ci]
|
11 months ago |
Alejandra
|
8170860322
|
♻️ Refactor sponsor image handling (#14102)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
11 months ago |
github-actions[bot]
|
f0da082dd3
|
📝 Update release notes
[skip ci]
|
11 months ago |
Alejandra
|
f97524429d
|
🐛 Fix sponsor display issue by hiding element on image error (#14097)
|
11 months ago |
github-actions[bot]
|
6b1e6c5efd
|
📝 Update release notes
[skip ci]
|
11 months ago |
Alejandra
|
40f3ab18e0
|
🐛 Hide sponsor badge when sponsor image is not displayed (#14096)
|
11 months ago |
github-actions[bot]
|
8dfc651e1a
|
📝 Update release notes
[skip ci]
|
11 months ago |
Alejandra
|
2eca83fbda
|
📝 Update contributing guidelines for installing requirements (#14095)
|
11 months ago |
Sebastián Ramírez
|
784f06cb9b
|
🔖 Release version 0.117.1
|
11 months ago |
github-actions[bot]
|
b5c05893b4
|
📝 Update release notes
[skip ci]
|
11 months ago |
Thomas LÉVEIL
|
44fc67632b
|
🐛 Fix validation error when `File` is declared after `Form` parameter (#11194)
Co-authored-by: Sebastián Ramírez <[email protected]>
|
11 months ago |
Sebastián Ramírez
|
a84001000e
|
📝 Update release notes
|
11 months ago |
Sebastián Ramírez
|
382d083e26
|
🔖 Release version 0.117.0
|
11 months ago |
github-actions[bot]
|
a7f2dbe976
|
📝 Update release notes
[skip ci]
|
11 months ago |
vvanglro
|
f1e6f978ce
|
⚡️ Fix `default_factory` for response model field with Pydantic V1 (#9704)
Co-authored-by: Motov Yurii <[email protected]>
|
11 months ago |
github-actions[bot]
|
b01d5c97a0
|
📝 Update release notes
[skip ci]
|
11 months ago |
Robert Hofer
|
b51ec36f2e
|
✨ Allow `None` as return type for bodiless responses (#9425)
Co-authored-by: Sebastián Ramírez <[email protected]>
|
11 months ago |
github-actions[bot]
|
0bdc3ca373
|
📝 Update release notes
[skip ci]
|
11 months ago |
Max McLennan
|
86e515784d
|
🐛 Fix inconsistent processing of model docstring formfeed char with Pydantic V1 (#6039)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <[email protected]>
Co-authored-by: Sebastián Ramírez <[email protected]>
|
11 months ago |
github-actions[bot]
|
03123c00f1
|
📝 Update release notes
[skip ci]
|
11 months ago |
Salim Aboubacar
|
2dc769b121
|
🐛 Fix `jsonable_encoder` alters `json_encoders` of Pydantic v1 objects (#4972)
Co-authored-by: Sebastián Ramírez <[email protected]>
Co-authored-by: Yurii Motov <[email protected]>
|
11 months ago |
github-actions[bot]
|
606a6828e7
|
📝 Update release notes
[skip ci]
|
11 months ago |