Skip to content

Commit 05ba93a

Browse files
committed
fix(types): resolve json serialization errors
1 parent 18eee9c commit 05ba93a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pynetmito/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class BaseAPIModel(BaseModel):
1010
)
1111

1212
def to_dict(self) -> Dict[str, Any]:
13-
return self.model_dump(exclude_none=True)
13+
return self.model_dump(exclude_none=True, mode="json")
1414

1515
@classmethod
1616
def from_dict(cls, data: Dict[str, Any]):

0 commit comments

Comments
 (0)