Skip to content

Commit 114cc6e

Browse files
Update src/views/motor.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 93e19ee commit 114cc6e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/motor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ class MotorSimulation(ApiBaseView):
1515
new attributes that might be encoded.
1616
"""
1717

18-
model_config = ConfigDict(extra='allow', arbitrary_types_allowed=True)
18+
model_config = ConfigDict(
19+
ser_json_exclude_none=True,
20+
extra='allow',
21+
arbitrary_types_allowed=True
22+
)
1923

2024
message: str = "Motor successfully simulated"
2125

0 commit comments

Comments
 (0)