model_dump() needs to use mode="json"
This commit is contained in:
parent
6ecfa78c5d
commit
03426c1989
4 changed files with 4 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue