Skip to content

Document the diff format #1

Description

@tjvr

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'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions