We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e4d423 commit 86f82beCopy full SHA for 86f82be
jsonpatch.py
@@ -473,6 +473,9 @@ def apply(self, obj):
473
if part is None:
474
return value
475
476
+ if part == "-":
477
+ raise InvalidJsonPatch("'path' with '-' can't be applied to 'replace' operation")
478
+
479
if isinstance(subobj, MutableSequence):
480
if part >= len(subobj) or part < 0:
481
raise JsonPatchConflict("can't replace outside of list")
0 commit comments