Skip to content

Fails when removing multiple elements from array #6

@aaproducto

Description

@aaproducto

When you remove more than one element from an array, it breaks.

A test case:

source

[{"name":"a"},{"name":"b"},{"name":"c"}]

target:

[{"name":"a"}]

Error:

Uncaught exception 'Swaggest\JsonDiff\Exception' with message 'Key not found: 2' in /var/www/alquilerargentina/vendor/swaggest/json-diff/src/JsonPointer.php:185

note: pretty similar to this one java-json-tools/json-patch#11

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