Skip to content

Commit d4783e0

Browse files
fix: serialize UUIDs explicitly (#1263)
1 parent d4870c1 commit d4783e0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.7.3"
3+
version = "2.7.4"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/_cli/_utils/_common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import os
3+
import uuid
34
from pathlib import Path
45
from typing import Literal
56
from urllib.parse import urlparse
@@ -89,6 +90,9 @@ def serialize_object(obj):
8990
return serialize_object(dict(obj))
9091
except (TypeError, ValueError):
9192
return obj
93+
# UUIDs must be serialized explicitly
94+
elif isinstance(obj, uuid.UUID):
95+
return str(obj)
9296
# Return primitive types as is
9397
else:
9498
return obj

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)