diff options
author | Dave Shawley <daveshawley@gmail.com> | 2020-11-17 08:15:25 -0500 |
---|---|---|
committer | Dave Shawley <daveshawley@gmail.com> | 2020-11-17 08:19:29 -0500 |
commit | a7ef7e80d0024b71794c22fd09e35389c04de964 (patch) | |
tree | 392b67f67257e4bd8ef75431e8ff4383c144d03d /jsonpatch.py | |
parent | bfc0f5a68fc45a1335488c953fd055750528f16e (diff) | |
download | python-json-patch-a7ef7e80d0024b71794c22fd09e35389c04de964.tar.gz |
fix #110: Validate patch documents during creation.
Diffstat (limited to 'jsonpatch.py')
-rw-r--r-- | jsonpatch.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jsonpatch.py b/jsonpatch.py index 7d5489a..022972b 100644 --- a/jsonpatch.py +++ b/jsonpatch.py @@ -222,6 +222,9 @@ class JsonPatch(object): 'copy': CopyOperation, } + for op in self.patch: + self._get_operation(op) + def __str__(self): """str(self) -> self.to_string()""" return self.to_string() |