From 28672f2409982b74e17b5d64227ce8b32016a68c Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 2 Dec 2024 16:46:49 +0800 Subject: [PATCH] :bug: Fix pydantic v2 basemodel config ignore extra --- utils/patch/pydantic_basemodel.py | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/patch/pydantic_basemodel.py b/utils/patch/pydantic_basemodel.py index 36f35b1..efef4aa 100644 --- a/utils/patch/pydantic_basemodel.py +++ b/utils/patch/pydantic_basemodel.py @@ -1,5 +1,4 @@ import pydantic -pydantic.BaseModel.model_config["extra"] = "allow" pydantic.BaseModel.model_config["coerce_numbers_to_str"] = True pydantic.BaseModel.model_config["arbitrary_types_allowed"] = True