Skip to content

Not testable: A.13 Invalid JSON Patch Document #15

@warpech

Description

@warpech

There is one test in tests.js that cannot be parsed as a JSON document:

{
    "comment": "A.13 Invalid JSON Patch Document",
    "doc": {
     "foo": "bar"
    },
    "patch": [
  { "op": "add", "path": "/baz", "value": "qux", "op": "remove" }
],
    "error": "operation has two 'op' members"
  }

First value assignment ("op": "add") is simply ignored by a standard JSON parser, so this condition is really untestable. I suggest to remove this test from the spec.

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