Skip to content

How to get test patch? #98

Open
Open
@michaelrice

Description

@michaelrice

Given:

d1 = {1: "a", 2: "b"}
d2 = {1: "b", 2: "v"}
patch = jsonpatch.make_patch(d1, d2)
patch.to_string()
'[{"value": "b", "op": "replace", "path": "/1"}, {"value": "v", "op": "replace", "path": "/2"}]'

How can I get the patch that would have test instead of 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