Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions skyvern/forge/sdk/core/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@


def _normalize_numbers(x: Any) -> Any:
if isinstance(x, float):
if type(x) is float:
return int(x) if x.is_integer() else x
if isinstance(x, dict):
elif type(x) is dict:
return {k: _normalize_numbers(v) for k, v in x.items()}
if isinstance(x, list):
elif type(x) is list:
return [_normalize_numbers(v) for v in x]
return x
else:
return x


def _normalize_json_dumps(payload: dict) -> str:
Expand Down