You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
first of all, thank you for forking serde-json-diff and add the epsilon floats comparison!
I just came across this crate after forking serde-json-diff a few days ago , and I would prefer to use this one instead of reinventing the wheel myself.
One of my use case is to expose and return the Difference<'> in the assert_json_matches_no_panic() function.
This would allow me to perform further processing with the diffs.
However, this raised a lifetime problem. I created an issue with details in my own repository: B-2U/assert-json-same#4.
TLDR:
Make Difference an owned type => slow down the crate completely
Change the function signature so it take two serde_json::Value ownership instead => it break the flexibility of the api
Current approach, introduce the owned types variants DifferenceBuf, PathBuf and KeyBuf, like str/String and Path/PathBuf