Skip to content

Commit a26e01c

Browse files
Update src/views/environment.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 40aed61 commit a26e01c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/environment.py

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

19-
model_config = ConfigDict(extra='allow', arbitrary_types_allowed=True)
19+
model_config = ConfigDict(
20+
ser_json_exclude_none=True, # keep parent's behavior
21+
extra='allow',
22+
arbitrary_types_allowed=True
23+
)
2024

2125
message: str = "Environment successfully simulated"
2226

0 commit comments

Comments
 (0)