Skip to content

Commit 01208c0

Browse files
authored
Merge pull request #21 from franccesco/dream/2026-07-23.1/finding-001
dream: replace pydantic populate_by_name with validate_by_name
2 parents bc89984 + a016863 commit 01208c0

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies = [
99
"httpx>=0.27.0",
1010
"pyyaml>=6.0",
1111
"typing-extensions>=4.0.0",
12-
"pydantic>=2.0.0",
12+
"pydantic>=2.11.0",
1313
]
1414

1515
[project.optional-dependencies]

src/bloomy/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class BloomyBaseModel(BaseModel):
5252
"""Base model with common configuration for all Bloomy models."""
5353

5454
model_config = ConfigDict(
55-
populate_by_name=True,
55+
validate_by_name=True,
56+
validate_by_alias=True,
5657
use_enum_values=True,
5758
validate_assignment=True,
5859
arbitrary_types_allowed=True,

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)