From 6802561345ecf123ad9318e35b96cf20c74ca84d Mon Sep 17 00:00:00 2001 From: Andrei Ancuta Date: Wed, 4 Feb 2026 15:48:44 +0200 Subject: [PATCH] fix: serialize UUIDs explicitly --- pyproject.toml | 2 +- src/uipath/_cli/_utils/_common.py | 4 ++++ uv.lock | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 10b6d4d35..05830819d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath" -version = "2.7.3" +version = "2.7.4" description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools." readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/src/uipath/_cli/_utils/_common.py b/src/uipath/_cli/_utils/_common.py index 024afd78d..ae5c260c4 100644 --- a/src/uipath/_cli/_utils/_common.py +++ b/src/uipath/_cli/_utils/_common.py @@ -1,5 +1,6 @@ import json import os +import uuid from pathlib import Path from typing import Literal from urllib.parse import urlparse @@ -89,6 +90,9 @@ def serialize_object(obj): return serialize_object(dict(obj)) except (TypeError, ValueError): return obj + # UUIDs must be serialized explicitly + elif isinstance(obj, uuid.UUID): + return str(obj) # Return primitive types as is else: return obj diff --git a/uv.lock b/uv.lock index 0a5493884..e591ba352 100644 --- a/uv.lock +++ b/uv.lock @@ -2491,7 +2491,7 @@ wheels = [ [[package]] name = "uipath" -version = "2.7.3" +version = "2.7.4" source = { editable = "." } dependencies = [ { name = "applicationinsights" },