Skip to content

applyInPlace does not work when replace root path #188

Open
@ruiruige

Description

@ruiruige

Expected Behavior

do replace when path is root while using applyInPlace

Actual Behavior

did nothing

input: {"throw", true}
diff: [
{
"op": "replace",
"path": "",
"value": {
"throw": false
}
}
]

applyInPlace does not replace anything. after I debug, I found InPlaceApplyProcessor does not change sourceNode when path is root:
image

Specifications

Library Version: 0.4.11
Language (e.g. Java 1.8, Scala, etc):Java 1.8

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