We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93e19ee commit 114cc6eCopy full SHA for 114cc6e
src/views/motor.py
@@ -15,7 +15,11 @@ class MotorSimulation(ApiBaseView):
15
new attributes that might be encoded.
16
"""
17
18
- model_config = ConfigDict(extra='allow', arbitrary_types_allowed=True)
+ model_config = ConfigDict(
19
+ ser_json_exclude_none=True,
20
+ extra='allow',
21
+ arbitrary_types_allowed=True
22
+ )
23
24
message: str = "Motor successfully simulated"
25
0 commit comments