This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new e33598939d9 Serialize pydantic models in json mode. This ensures the
dict is json serializable. (#56736) (#56878)
e33598939d9 is described below
commit e33598939d9286bbe095f09ce6f0437bacfc91a4
Author: Desdroid <[email protected]>
AuthorDate: Tue Oct 21 11:39:14 2025 +0200
Serialize pydantic models in json mode. This ensures the dict is json
serializable. (#56736) (#56878)
---
airflow-core/src/airflow/serialization/serializers/pydantic.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow-core/src/airflow/serialization/serializers/pydantic.py
b/airflow-core/src/airflow/serialization/serializers/pydantic.py
index 91db3812643..b07cc634176 100644
--- a/airflow-core/src/airflow/serialization/serializers/pydantic.py
+++ b/airflow-core/src/airflow/serialization/serializers/pydantic.py
@@ -46,7 +46,7 @@ def serialize(o: object) -> tuple[U, str, int, bool]:
if not is_pydantic_model(o):
return "", "", 0, False
- data = o.model_dump() # type: ignore
+ data = o.model_dump(mode="json") # type: ignore
return data, qualname(o), __version__, True