Skip to content

Commit c5c089d

Browse files
committed
fix: maintain default values in serialization
1 parent 792b4c6 commit c5c089d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structurizr/api/structurizr_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def put_workspace(self, workspace: Workspace) -> None:
158158
ws_io.last_modified_date = datetime.now(timezone.utc)
159159
ws_io.last_modified_agent = self.agent
160160
ws_io.last_modified_user = self.user
161-
workspace_json = ws_io.json(by_alias=True, exclude_none=True)
161+
workspace_json = ws_io.json(by_alias=True, exclude_none=True, exclude_defaults=False)
162162
logger.debug(workspace_json)
163163
request = self._client.build_request(
164164
"PUT", self._workspace_url, data=workspace_json

0 commit comments

Comments
 (0)