Skip to content

compareArray function return false path when a filed is removed from array of object #189

@shoaibjo

Description

@shoaibjo

Expected Behavior

[{"op":"remove","path":"/1","value":{"name":"Test1"}},{"op":"remove","path":"/4","value":{"name":"Test5"}}]

Actual Behavior

[{"op":"remove","path":"/1","value":{"name":"Test1"}},{"op":"remove","path":"/3","value":{"name":"Test5"}}]

Steps to Reproduce the Problem

[ { "name": "Test0" }, { "name": "Test1" }, { "name": "Test3" }, { "name": "Test4" }, { "name": "Test5" }, { "name": "Test6" } ]
comparing to
[ { "name": "Test0" }, { "name": "Test3" }, { "name": "Test4" }, { "name": "Test6" }]

Specifications

As you can see Test1 on index 1 and Test5 on index 4 have been removed
Library Version:
Language (e.g. Java 1.8, Scala, etc):

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