stefankoegl / python-json-patch

Applying JSON Patches in Python
https://python-json-patch.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
457 stars 97 forks source link

Fix #110 - validate patch document during creation #116

Closed dave-shawley closed 4 years ago

dave-shawley commented 4 years ago

This PR verifies that the operations are valid during patch creation. I also added tests for the structure of each operation type.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.8%) to 65.846% when pulling 3bb33518194b0cbc6e1512dbeb2ac5ef548d8c72 on dave-shawley:validate-patch-doc into 4fe5c2c6a1e082fd1bacd36d8862d3a4d968f20b on stefankoegl:master.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.9%) to 65.953% when pulling b44e7a2031ad5cbe0a0d5ad2ab0763b7b9b8dc25 on dave-shawley:validate-patch-doc into 4fe5c2c6a1e082fd1bacd36d8862d3a4d968f20b on stefankoegl:master.

stefankoegl commented 4 years ago

Merged, thanks :)

stefankoegl commented 4 years ago

I have just released v1.27 which inlcudes this PR. Thanks for the contribution!