diff --git a/pyproject.toml b/pyproject.toml index f66f510..81033ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "infrasys" -version = "0.2.3" +version = "0.2.4" description = '' readme = "README.md" requires-python = ">=3.10, <3.13" diff --git a/src/infrasys/serialization.py b/src/infrasys/serialization.py index 4bf2c7e..541454b 100644 --- a/src/infrasys/serialization.py +++ b/src/infrasys/serialization.py @@ -88,7 +88,7 @@ def get_type(self, metadata: SerializedTypeBase) -> Type: def serialize_value(obj: InfraSysBaseModel, *args, **kwargs) -> dict[str, Any]: """Serialize an infrasys object to a dictionary.""" cls = type(obj) - data = obj.model_dump(*args, mode="json", **kwargs) + data = obj.model_dump(*args, mode="json", round_trip=True, **kwargs) data[TYPE_METADATA] = SerializedTypeMetadata( fields=SerializedBaseType( module=cls.__module__,