python-json-patch
python-json-patch copied to clipboard
Applying JSON Patches in Python
Continues the work from #63
https://github.com/stefankoegl/python-json-patch/blob/7b664c4dbe05e24abfc031850b9396d0b61296fd/tests.py#L329-L338 Is there ongoing work to fix this issue? This lib is much nicer than alternatives, but the sub-optimal diffing makes it unusable for my use case.
I'm not sure if I'm doing it wrong, but I have this question: Say, I receive a patch to my API: ``` PATCH /news/123 [ {"op": "replace", "path": "/title", "value":...
Patch inversion would be lovely. It is implemented on [jiff](https://github.com/cujojs/jiff#inverse). Here's a [use case](https://github.com/rossant/ipymd/issues/38): namely, when a Markdown+YAML document goes out, we want to make modifications to the generated canonical...
Patch generated by: sed -i 's/unittest.makeSuite/unittest.defaultTestLoader.loadTestsFromTestCase/g' $(grep -rl makeSuite)
On Python 3.6+ (where dict is ordered) I'd expected the following to always return the same results: ```python import jsonpatch a = { 'key1': 'value1', 'key2': 'value2', 'key3': 'value3', 'key4':...
To reproduce: ```python import jsonpatch ``` Run mypy: > error: Skipping analyzing "jsonpatch": module is installed, but missing library stubs or py.typed marker [import-untyped] I guess, we need to drop...
Hi, This PR adds a new option for generating patches - `generate_test_ops` - that adds a `test` operation before every `remove` and `replace` operation. This allows for generating patches that...