Skip to content

Commit 89fb3f6

Browse files
committed
Accept explicit null value in _flatten_request_body_recursive
1 parent 34eed03 commit 89fb3f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

linode_api4/objects/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,9 @@ def _flatten_request_body_recursive(data: Any, is_put: bool = False) -> Any:
530530
if isinstance(data, Base):
531531
return data.id
532532

533+
if isinstance(data, ExplicitNullValue) or data == ExplicitNullValue:
534+
return None
535+
533536
if isinstance(data, MappedObject) or issubclass(type(data), JSONObject):
534537
return data._serialize(is_put=is_put)
535538

0 commit comments

Comments
 (0)