Skip to content
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

Question about jsonpatch formatter #320

Open
danielglh opened this issue May 7, 2022 · 1 comment
Open

Question about jsonpatch formatter #320

danielglh opened this issue May 7, 2022 · 1 comment

Comments

@danielglh
Copy link

We observed some weird behavior when using jsonpatch formatter. The diff was right but the output of jsonpatch formatter looks off.

When I looked into the jsonpatch formatter implementation, a method reorderOps caught my attention. I'm wondering why is it necessary to reorder the ops before they are returned, and why in this particular logic (remove first in desc order, then move and rest)?

@aryelu
Copy link
Contributor

aryelu commented Oct 4, 2022

Hi, can you please write what is the expected order and what did you get?

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

2 participants