improve: mordernizing validation by migrating pydantic from 1.x to 2.x (#4592)
This commit is contained in:
@@ -6,4 +6,4 @@ def dump_model(model: BaseModel) -> dict:
|
||||
if hasattr(pydantic, 'model_dump'):
|
||||
return pydantic.model_dump(model)
|
||||
else:
|
||||
return model.dict()
|
||||
return model.model_dump()
|
||||
|
Reference in New Issue
Block a user