From 9ca3a4d0870ed110a60e30958533ce420d99d469 Mon Sep 17 00:00:00 2001 From: Rushmore Mushambi Date: Tue, 27 Aug 2024 13:24:22 +0100 Subject: [PATCH] Fix `PatchOp::change` API (#4616) --- sdk/src/api/opt/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/src/api/opt/mod.rs b/sdk/src/api/opt/mod.rs index 45c60284..0597f466 100644 --- a/sdk/src/api/opt/mod.rs +++ b/sdk/src/api/opt/mod.rs @@ -1,5 +1,5 @@ //! The different options and types for use in API functions -use dmp::Diff; + use serde::Serialize; pub mod auth; @@ -126,10 +126,10 @@ impl PatchOp { } /// Changes a value - pub fn change(path: &str, diff: Diff) -> Self { + pub fn change(path: &str, diff: String) -> Self { Self(Serializer::new().serialize(UnitOp::Change { path, - value: diff.text, + value: diff, })) } }