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

Document the diff format #1

Open
tjvr opened this issue Apr 6, 2017 · 0 comments
Open

Document the diff format #1

tjvr opened this issue Apr 6, 2017 · 0 comments

Comments

@tjvr
Copy link
Member

tjvr commented Apr 6, 2017

The diff format is similar to the one used by json-diff. It looks something like this (IIRC):

  • [' '] -- the item is unchanged
  • ['+', <object>] -- the item has been added
  • ['-', <object>] -- item was removed
  • ['~', <diff>] -- item was modified. The diff structure is recursive, so diff might be an object or an array

{__old: <object>, __new: <object>} is the diff format for 'replace this object with another'.

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

1 participant