Skip to content

Commit 7c3bb0d

Browse files
committed
fix addap op as addne issue
1 parent 3b90209 commit 7c3bb0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonpath/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def _build(self, patch: Iterable[Mapping[str, object]]) -> None:
419419
value=self._op_value(operation, "value", "addne", i),
420420
)
421421
elif op == "addap":
422-
self.addne(
422+
self.addap(
423423
path=self._op_pointer(operation, "path", "addap", i),
424424
value=self._op_value(operation, "value", "addap", i),
425425
)

0 commit comments

Comments
 (0)