Skip to content

Commit 7c9d294

Browse files
committed
hotfix: Basic object types can't carry additional schema information properly
1 parent b5f4544 commit 7c9d294

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dreadnode/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def _serialize(obj: t.Any, seen: set[int] | None = None) -> tuple[JsonValue, Jso
519519
# Primitives early
520520

521521
if isinstance(obj, str | int | float | bool) or obj is None:
522-
return obj, EMPTY_SCHEMA
522+
return obj, {}
523523

524524
# Cycle tracking
525525

0 commit comments

Comments
 (0)