python-json-patch icon indicating copy to clipboard operation
python-json-patch copied to clipboard

Applying JSON Patches in Python

Results 44 python-json-patch issues
Sort by recently updated
recently updated
newest added

Traceback (most recent call last): File ".../lib/python3.11/site-packages/jsonpointer.py", line 281, in walk return doc[part] ~~~^^^^^^ IndexError: list index out of range This are the relevant fields from the patch: ```json [...

```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-json-patch-1.33-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-json-patch-1.33-2.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -m 'not network' ==================================================================================== test session starts ==================================================================================== platform linux -- Python 3.8.17, pytest-7.4.0, pluggy-1.0.0 rootdir: /home/tkloczko/rpmbuild/BUILD/python-json-patch-1.33 collected 0 items =================================================================================== no tests ran...

On building my packages I'm using `sphinx-build` command with `-n` switch which shows warmings about missing references. These are not critical issues. Here is the output with warnings: ```console +...

Is it possible next time on release new version make the github release to have entry on https://github.com/stefankoegl/python-json-patch/releases? 🤔 I'm asking because only on make gh release is spread notification...

https://readthedocs.org/projects/python-json-patch/builds/

Python 3.9.18, jsonpatch 1.33 I came across an issue where sometimes the order of the created patch operations is wrong: ```python src_obj = {'a': [{'id': [1]}, {'id': [2]}], 'b': [{'id':...

`_compare_dicts()` exhibited non-deterministic ordering due to hash randomization affecting the ordering of sets used to compare dict keys. Dict key comparisons are now performed without sets, resulting in dict key...

- [x] Understand the issue with numeric string dict keys - [x] Reproduce the issue with a test case - [x] Compare the handling in _item_added vs _item_removed - [x]...

## Problem When inserting new elements into a list of lists, the JSON patch representation was unnecessarily complex. Instead of generating a simple `add` operation with the whole list element...

## Issue When `jsonpatch.make_patch()` creates patches with multiple interdependent move operations, the operations are sometimes ordered incorrectly, resulting in incorrect patch application. This happened because the order in which operations...