Skip to content

Removal of the root #17

Open
Open
@espadrine

Description

@espadrine

The patch { "op": "remove", "path": "" } is currently undefined.

I believe it should have the same result as { "op": "add", "path": "", "value": null }. As a side-result, it would also validate the definition of { "op": "replace", "path": "", "value": null }, which states:

This operation is functionally identical to a "remove" operation for
a value, followed immediately by an "add" operation at the same
location with the replacement value.

In any case, it would benefit from being specified. Some implementations currently throw, and that is unfortunate, as it breaks the specification as quoted above..

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