Skip to content

The produced patch is not the minimal one #36

Closed
@stanch

Description

@stanch

Hi,

Consider the following example:

  jsondiff <(echo '[{"foo": 1, "bar": 2}]') <(echo '[{"foo": 2, "bar": 2}]') | jq .
[
  {
    "path": "/0",
    "value": {
      "foo": 2,
      "bar": 2
    },
    "op": "replace"
  }
]

I think the result should be:

[
  {
    "path": "/0/foo",
    "value": 2,
    "op": "replace"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions