-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
With the invalid operation, missing document key or missing object key the error is the same JSON::PatchError
Example:
Missing document key path
operations = [{"op": "replace", "value": "BAZZ"}]
item = {foo: "bazz"}
JSON::Patch.new(item, operations).call
# => JSON::PatchErrorInvalid operation replaces
operations = [{"op": "replaces", path: "/foo", "value": "BAZZ"}]
item = {foo: "bazz"}
JSON::Patch.new(item, operations).call
# => JSON::PatchErrorMetadata
Metadata
Assignees
Labels
No labels