model_dump() needs to use mode="json"

This commit is contained in:
Laura Klünder 2024-03-29 15:01:39 +01:00
parent 6ecfa78c5d
commit 03426c1989
4 changed files with 4 additions and 4 deletions

View file

@ -350,7 +350,7 @@ class MeshMessage(BaseModel):
"type": "mesh.send",
"sender": sender,
"exclude_uplink_address": exclude_uplink_address,
"msg": self.model_dump(),
"msg": self.model_dump(mode="json"),
}
if self.dst in (MESH_CHILDREN_ADDRESS, MESH_BROADCAST_ADDRESS):