Skip to content

Add old value in result #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
akashjain18 opened this issue Sep 14, 2017 · 3 comments
Open

Add old value in result #44

akashjain18 opened this issue Sep 14, 2017 · 3 comments

Comments

@akashjain18
Copy link

Hi , can we add old value also in the result i need this in my requirement
please help me to add old value in the result.

@daveclayton
Copy link
Contributor

HI @akashjain18 can you clarify your requirements?

Perhaps you can provide an example of what you expect to pass in and what you expect to get out.

@chenjianjx
Copy link

I think he means that in the resulted JsonNode of JsonDiff.asJson(), if there is a "replace", not only the new value is there, but the original value should also be there.

For example,

change a resulted diff json from
[
{
"op": "replace",
"path": "/firstName",
"value": "new first name"
}
]

to

[
{
"op": "replace",
"path": "/firstName",
"oldValue": "old first name",
"value": "new first name"
}
]

I do this guess because I also want this feature

@yossiyy
Copy link

yossiyy commented Oct 25, 2022

This would be great for Change Data Capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants