diff --git a/src/api/change.rs b/src/api/change.rs index bbce5fc..ad1675d 100644 --- a/src/api/change.rs +++ b/src/api/change.rs @@ -13,6 +13,7 @@ #[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] pub struct BufferUpdate { /// Optional content hash after applying this change. + #[cfg_attr(feature = "serialize", serde(skip_serializing_if = "Option::is_none"))] pub hash: Option, /// CRDT version after this change has been applied. pub version: Vec,