We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9ae3ad commit 4036036Copy full SHA for 4036036
1 file changed
fern/products/sdks/overview/python/changelog/2026-03-26.mdx
@@ -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