summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* docs: fix simple typo, raies -> raise (#135)HEADmasterTim Gates2021-09-141-1/+1
|
* Merge pull request #134 from Ventilateur/b/fix-invalid-remove-indexStefan Kögl2021-04-122-0/+16
|\ | | | | B/fix invalid remove index
| * remove unused importVu-Hoang Phan2021-04-061-2/+2
| |
| * fix invalid remove indexVu-Hoang Phan2021-04-062-0/+16
|/
* Merge pull request #132 from JulienPalard/mdk/TypeErrorStefan Kögl2021-03-292-1/+20
|\ | | | | FIX: TypeError when one forgot to put its operation in a list.
| * FIX: TypeError when one forgot to put its operation in a list.Julien Palard2021-03-212-1/+20
|/
* Bump version to 1.32v1.32Stefan Kögl2021-03-131-1/+1
|
* Merge branch 'master' of github.com:stefankoegl/python-json-patchStefan Kögl2021-03-132-6/+17
|\
| * Merge pull request #130 from Penguin2600/masterStefan Kögl2021-03-132-6/+17
| |\ | | | | | | Closes #129
| | * closes #129Bock2021-03-112-6/+17
| |/
* | Bump version to 1.31v1.31Stefan Kögl2021-03-041-1/+1
|/
* Remove failing pypy buildStefan Kögl2021-03-041-1/+0
|
* Merge pull request #127 from Genzer/masterStefan Kögl2021-03-042-7/+10
|\ | | | | Add support for preserving Unicode characters in jsonpatch CLI
| * Add support for preserving Unicode characters in jsonpatch CLIGenzer Hawker2021-03-032-7/+10
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the JSON content contains some Unicode characters, the jsonpatch final output will encode the Unicode character using ASCII (i.e `\u0394`). This behaviour comes from the module `json.dump()` governed by a flag `ensure_ascii`[1]. For example: ```json /* patch.json */ [{ "op": "add", "path": "/SomeUnicodeSamples", "value": "𝒞𝘋𝙴𝓕ĢȞỈ𝕵 đ áê 🤩 äÄöÖüÜß" }] ``` After applying the patch on an empty source file `{}`, this is the output: ```json {"SomeUnicodeSamples": "\ud835\udc9e\ud835\ude0b...\u00fc\u00dc\u00df"} ``` This commit adds a flag `-u|--preserve-unicode` in the jsonpatch CLI to configure the behaviour of `json.dump`'s `ensure_ascii` flag. Using the `--preserve-unicode` flag, the cli will print the Unicode characters as-is without any encoding. [1]: https://docs.python.org/3/library/json.html#basic-usage
* Fix version number v1.30v1.30Stefan Kögl2021-03-021-1/+1
|
* Merge pull request #122 from RyanSept/119-120-fix-diffbuilderv1.29Stefan Kögl2021-03-022-3/+65
|\ | | | | #119 #120 Fix make_patch() to avoid casting numeric string to int on item moved
| * Update commentRyan Marvin2021-02-181-1/+1
| |
| * Add commentRyan Marvin2021-02-181-0/+4
| |
| * Fix make_patchRyan Marvin2021-02-012-3/+61
|/
* Bump version to 1.28v1.28Stefan Kögl2020-12-011-1/+1
|
* Merge pull request #118 from tzoiker/fix/json-patch-opsStefan Kögl2020-12-012-195/+228
|\ | | | | Declare json-patch operations as a class-based attribute
| * test: fixArtyom Nikitin2020-11-241-2/+4
| |
| * test: custom operationsArtyom Nikitin2020-11-231-0/+26
| |
| * feat: make operations class-basedArtyom Nikitin2020-11-231-195/+200
|/
* Merge pull request #117 from stefankoegl/py3.9Stefan Kögl2020-11-232-1/+3
|\ | | | | Update Python to 3.9
| * Update Python to 3.9Stefan Kögl2020-11-232-1/+3
|/
* Merge pull request #114 from tzoiker/feature/custom-pointerStefan Kögl2020-11-232-31/+180
|\ | | | | Allow custom JSON pointer class
| * Merge branch 'master' into feature/custom-pointerArtyom Nikitin2020-11-235-11/+230
| |\ | |/ |/| | | | | | | # Conflicts: # jsonpatch.py # tests.py
* | Merge pull request #116 from dave-shawley/validate-patch-docStefan Kögl2020-11-204-0/+91
|\ \ | | | | | | Fix #110 - validate patch document during creation
| * | Explain the call to _get_operation in __init__.Dave Shawley2020-11-201-0/+4
| | |
| * | Add tests for operation doc structure.Dave Shawley2020-11-171-0/+64
| | |
| * | fix #110: Validate patch documents during creation.Dave Shawley2020-11-172-0/+20
| | |
| * | Update coveragerc and require coverage.Dave Shawley2020-11-172-0/+3
| | |
* | | Merge pull request #108 from paperlessreceipts/custom-typesStefan Kögl2020-11-203-9/+132
|\ \ \ | |/ / |/| | Make it possible for from_diff to support custom types (issue #107)
| * | Make DiffBuilder's dumps argument optionalChristian Lyder Jacobsen2020-03-161-1/+1
| | |
| * | Merge branch 'master' into custom-typesChristian Lyder Jacobsen2020-03-061-17/+17
| |\ \
| * | | Subclassing can override json dumper and loaderChristian Lyder Jacobsen2020-03-063-15/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally: * from_string gets a loads parameter * to_string gets a dumps_parameter * documentation added * added more tests
| * | | Make it possible for from_diff to support custom types (issue #107)Christian Lyder Jacobsen2020-01-312-4/+24
| | | |
| | | * tests: moarArtyom Nikitin2020-11-171-0/+38
| | | |
| | | * chore: revert version bumpArtyom Nikitin2020-11-171-1/+1
| | | |
| | | * style: fix typoArtyom Nikitin2020-11-171-1/+1
| | | |
| | | * test: fix for py27Artyom Nikitin2020-11-171-24/+26
| | | |
| | | * test: add toy jsonpointer exampleArtyom Nikitin2020-11-171-0/+11
| | | |
| | | * test: updateArtyom Nikitin2020-11-161-0/+2
| | | |
| | | * chore: bump versionArtyom Nikitin2020-11-161-1/+1
| | | |
| | | * test: add more testsArtyom Nikitin2020-11-151-0/+22
| | | |
| | | * doc: fix docstringsArtyom Nikitin2020-11-131-3/+6
| | | |
| | | * test: custo json pointerArtyom Nikitin2020-11-131-0/+54
| | | |
| | | * feat: add custom json pointer supportArtyom Nikitin2020-11-131-32/+44
| |_|/ |/| |
* | | Merge pull request #112 from Alanscut/issue-111Stefan Kögl2020-06-222-1/+18
|\ \ \ | | | | | | | | fix #111: optimizing exception message