Skip to content

Commit f7448eb

Browse files
author
Richard Bell
committed
Match base client to json
1 parent 01390cf commit f7448eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nisystemlink/clients/notebook/_notebook_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def update_notebook(
115115
"""
116116
metadata_io = None
117117
if metadata is not None:
118-
metadata_str = metadata.json()
118+
metadata_str = metadata.json(by_alias=True, exclude_unset=True)
119119
metadata_io = io.BytesIO(metadata_str.encode("utf-8"))
120120

121121
return self.__update_notebook(
@@ -176,7 +176,7 @@ def create_notebook(
176176
ApiException: if unable to communicate with the ``/ninotebook`` service or provided invalid
177177
arguments.
178178
"""
179-
metadata_str = metadata.json()
179+
metadata_str = metadata.json(by_alias=True, exclude_unset=True)
180180

181181
metadata_io = io.BytesIO(metadata_str.encode("utf-8"))
182182
return self.__create_notebook(

0 commit comments

Comments
 (0)