summaryrefslogtreecommitdiff
path: root/jsonpatch.py
Commit message (Collapse)AuthorAgeFilesLines
* bump version to 1.12v1.12v112Stefan Kögl2015-11-031-1/+1
|
* Fix bug in _split_by_common_seq using wrong range in right subtreeAlex Pinkney2015-11-031-1/+1
|
* bump version to 1.11v1.11Stefan Kögl2015-05-081-1/+1
|
* bump version to 1.10Stefan Kögl2015-05-071-1/+1
|
* bump version to 1.9v1.9Stefan Kögl2014-11-031-1/+1
|
* Use ABCs instead of list/dict, fixes #33Stefan Kögl2014-11-031-10/+19
|
* bump version to 1.8v1.8Stefan Kögl2014-09-261-1/+1
|
* raise JsonPatchException on missing patch attributesStefan Kögl2014-07-031-13/+41
|
* bump version to 1.7v1.7Stefan Kögl2014-07-031-1/+1
|
* bump version to 1.6v1.6Stefan Kögl2014-06-241-1/+1
|
* Fix make_patch() when root is an array (fixes #28)Stefan Kögl2014-06-241-1/+1
|
* Merge branch 'remove-error' of https://github.com/umago/python-json-patchStefan Kögl2014-04-101-1/+2
|\ | | | | | | | | Conflicts: jsonpatch.py
| * Improve error message when removing non-existent objectsLucas Alvares Gomes2014-04-071-1/+2
| |
* | bump version to 1.5v1.5Stefan Kögl2014-03-221-1/+1
| |
* | fix make_patch where obj keys contain "/", fixes #26Stefan Kögl2014-03-221-8/+12
| |
* | Optimize jsonpatch.make_patch for lists. Fixes #24Alexander Shorin2014-03-221-22/+234
| | | | | | | | | | | | | | | | | | This optimization tries to work only with really different lists subsequences and trying to preserve as much as possible common ones. This reduces overall of generated operations since now it's possible to simple insertions. Also, it converts pairs of remove-add operations into single replace (if target path is the same) or move (if target value is the same).
* | Catch KeyError when accessing the sub-doc itemsLucas Alvares Gomes2014-02-031-3/+9
|/
* allow moving array items into other items in same arrayJohan Forsberg2014-01-111-1/+1
|
* Fix equality tests for Python 3.xAlexander Shorin2013-11-121-1/+1
| | | | | Since map() returns generator in 3.x, it's not possible to compare them without unwrap.
* Keep things simpleAlexander Shorin2013-11-121-7/+1
|
* Use new string formatting syntaxAlexander Shorin2013-11-121-9/+8
| | | | Python 2.5 support was dropped long ago to care about
* Raise TypeError instead of AssertionErrorAlexander Shorin2013-11-121-11/+6
|
* Use reversed(range) is recommended over range with negative stepAlexander Shorin2013-11-121-2/+1
| | | | https://mail.python.org/pipermail/python-ideas/2013-October/023733.html
* Fix broken test for Python 2.xAlexander Shorin2013-10-281-0/+6
| | | | | | | Fun fact: for Python 3.x you don't need to explicitly implement __ne__ method if __eq__ exists, but you have do this for 2.x or your objects may be equal and non-equal at the same time. Seems like, before refactoring, operator.eq had used right logic.
* Fix some pylint warnings for Python 2.xAlexander Shorin2013-10-281-3/+3
|
* Remove useless iterationsAlexander Shorin2013-10-281-9/+18
|
* Raise pylint score from 6.87 to 9.10Alexander Shorin2013-10-281-51/+62
|
* bump version to 1.3v1.3Stefan Kögl2013-10-131-1/+1
|
* bump version to 1.2v1.2Stefan Kögl2013-10-091-1/+1
|
* handle duplicate JSON keys only when possibleStefan Kögl2013-10-091-1/+22
|
* exception if patch has multiple "op"sStefan Kögl2013-10-091-1/+20
|
* refactor tpye checkStefan Kögl2013-07-121-4/+5
|
* refactor type checkStefan Kögl2013-07-121-4/+5
|
* fix pointer containment comparisonStefan Kögl2013-07-121-1/+1
|
* catch correct exceptionStefan Kögl2013-07-121-1/+1
|
* fix JsonPatch.__eq__(other) for Python 3Stefan Kögl2013-07-121-1/+1
|
* simplify equality comparisonStefan Kögl2013-07-121-4/+2
|
* refactor equality comparisonStefan Kögl2013-07-121-4/+11
|
* Merge branch 'master' of github.com:stefankoegl/python-json-patchStefan Kögl2013-07-121-1/+1
|\
| * remove unused parameter to JsonPointer.to_last()Stefan Kögl2013-07-111-1/+1
| |
* | bump version to 1.1v1.1Stefan Kögl2013-06-271-1/+1
|/
* Fixed replacing whole documentWilliam Kral2013-06-231-0/+3
| | | | | | | | - json pointer to_last operation returns None for the part in the case that it is a whole document pointer - json patch now checks to see if the part is None and simply returns the value to replace the document - Added a test to verify the fix
* use unicode literals and update testsStefan Kögl2013-04-131-4/+6
|
* bump version to 1.0v1.0Stefan Kögl2013-04-031-1/+1
|
* mention RFC 6902Stefan Kögl2013-04-031-3/+1
|
* allow replacing the root of the documentStefan Kögl2013-04-031-5/+19
| | | | | This fixes the test from https://github.com/json-patch/json-patch-tests/commit/4db5098183c0e1d706b4525
* bump version to 0.12v0.12Stefan Kögl2013-01-031-1/+1
|
* "add" op should overwrite existing field in objStefan Kögl2012-12-211-3/+0
|
* remove duplicate raise statementStefan Kögl2012-12-171-1/+0
|
* bump version to 0.11v0.11Stefan Kögl2012-12-141-2/+2
|