Skip to content

Commit 4036036

Browse files
Update changelogs from fern repo (#4573)
Co-authored-by: aditya-arolkar-swe <13171215+aditya-arolkar-swe@users.noreply.github.com>
1 parent d9ae3ad commit 4036036

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## 5.0.8
2+
**`(fix):`** Eliminate Pydantic v2 deprecation warnings in `UniversalBaseModel`. Under Pydantic v2,
3+
the class-based `Config` pattern with `smart_union` and `allow_population_by_field_name`
4+
emits deprecation warnings. `UniversalBaseModel` now uses `model_config: ConfigDict` with
5+
`populate_by_name=True`, `validate_by_name=True`, and `validate_by_alias=True` (for v2.11+
6+
support) for v2, and a custom `@model_serializer` for datetime serialization instead of
7+
the deprecated `json_encoders`. Pydantic v1 continues to use the original class-based Config.
8+
9+

0 commit comments

Comments
 (0)