Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | docs: fix simple typo, raies -> raise (#135)HEADmaster | Tim Gates | 2021-09-14 | 1 | -1/+1 |
| | |||||
* | Merge pull request #134 from Ventilateur/b/fix-invalid-remove-index | Stefan Kögl | 2021-04-12 | 2 | -0/+16 |
|\ | | | | | B/fix invalid remove index | ||||
| * | remove unused import | Vu-Hoang Phan | 2021-04-06 | 1 | -2/+2 |
| | | |||||
| * | fix invalid remove index | Vu-Hoang Phan | 2021-04-06 | 2 | -0/+16 |
|/ | |||||
* | Merge pull request #132 from JulienPalard/mdk/TypeError | Stefan Kögl | 2021-03-29 | 2 | -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 Palard | 2021-03-21 | 2 | -1/+20 |
|/ | |||||
* | Bump version to 1.32v1.32 | Stefan Kögl | 2021-03-13 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:stefankoegl/python-json-patch | Stefan Kögl | 2021-03-13 | 2 | -6/+17 |
|\ | |||||
| * | Merge pull request #130 from Penguin2600/master | Stefan Kögl | 2021-03-13 | 2 | -6/+17 |
| |\ | | | | | | | Closes #129 | ||||
| | * | closes #129 | Bock | 2021-03-11 | 2 | -6/+17 |
| |/ | |||||
* | | Bump version to 1.31v1.31 | Stefan Kögl | 2021-03-04 | 1 | -1/+1 |
|/ | |||||
* | Remove failing pypy build | Stefan Kögl | 2021-03-04 | 1 | -1/+0 |
| | |||||
* | Merge pull request #127 from Genzer/master | Stefan Kögl | 2021-03-04 | 2 | -7/+10 |
|\ | | | | | Add support for preserving Unicode characters in jsonpatch CLI | ||||
| * | Add support for preserving Unicode characters in jsonpatch CLI | Genzer Hawker | 2021-03-03 | 2 | -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.30 | Stefan Kögl | 2021-03-02 | 1 | -1/+1 |
| | |||||
* | Merge pull request #122 from RyanSept/119-120-fix-diffbuilderv1.29 | Stefan Kögl | 2021-03-02 | 2 | -3/+65 |
|\ | | | | | #119 #120 Fix make_patch() to avoid casting numeric string to int on item moved | ||||
| * | Update comment | Ryan Marvin | 2021-02-18 | 1 | -1/+1 |
| | | |||||
| * | Add comment | Ryan Marvin | 2021-02-18 | 1 | -0/+4 |
| | | |||||
| * | Fix make_patch | Ryan Marvin | 2021-02-01 | 2 | -3/+61 |
|/ | |||||
* | Bump version to 1.28v1.28 | Stefan Kögl | 2020-12-01 | 1 | -1/+1 |
| | |||||
* | Merge pull request #118 from tzoiker/fix/json-patch-ops | Stefan Kögl | 2020-12-01 | 2 | -195/+228 |
|\ | | | | | Declare json-patch operations as a class-based attribute | ||||
| * | test: fix | Artyom Nikitin | 2020-11-24 | 1 | -2/+4 |
| | | |||||
| * | test: custom operations | Artyom Nikitin | 2020-11-23 | 1 | -0/+26 |
| | | |||||
| * | feat: make operations class-based | Artyom Nikitin | 2020-11-23 | 1 | -195/+200 |
|/ | |||||
* | Merge pull request #117 from stefankoegl/py3.9 | Stefan Kögl | 2020-11-23 | 2 | -1/+3 |
|\ | | | | | Update Python to 3.9 | ||||
| * | Update Python to 3.9 | Stefan Kögl | 2020-11-23 | 2 | -1/+3 |
|/ | |||||
* | Merge pull request #114 from tzoiker/feature/custom-pointer | Stefan Kögl | 2020-11-23 | 2 | -31/+180 |
|\ | | | | | Allow custom JSON pointer class | ||||
| * | Merge branch 'master' into feature/custom-pointer | Artyom Nikitin | 2020-11-23 | 5 | -11/+230 |
| |\ | |/ |/| | | | | | | | # Conflicts: # jsonpatch.py # tests.py | ||||
* | | Merge pull request #116 from dave-shawley/validate-patch-doc | Stefan Kögl | 2020-11-20 | 4 | -0/+91 |
|\ \ | | | | | | | Fix #110 - validate patch document during creation | ||||
| * | | Explain the call to _get_operation in __init__. | Dave Shawley | 2020-11-20 | 1 | -0/+4 |
| | | | |||||
| * | | Add tests for operation doc structure. | Dave Shawley | 2020-11-17 | 1 | -0/+64 |
| | | | |||||
| * | | fix #110: Validate patch documents during creation. | Dave Shawley | 2020-11-17 | 2 | -0/+20 |
| | | | |||||
| * | | Update coveragerc and require coverage. | Dave Shawley | 2020-11-17 | 2 | -0/+3 |
| | | | |||||
* | | | Merge pull request #108 from paperlessreceipts/custom-types | Stefan Kögl | 2020-11-20 | 3 | -9/+132 |
|\ \ \ | |/ / |/| | | Make it possible for from_diff to support custom types (issue #107) | ||||
| * | | Make DiffBuilder's dumps argument optional | Christian Lyder Jacobsen | 2020-03-16 | 1 | -1/+1 |
| | | | |||||
| * | | Merge branch 'master' into custom-types | Christian Lyder Jacobsen | 2020-03-06 | 1 | -17/+17 |
| |\ \ | |||||
| * | | | Subclassing can override json dumper and loader | Christian Lyder Jacobsen | 2020-03-06 | 3 | -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 Jacobsen | 2020-01-31 | 2 | -4/+24 |
| | | | | |||||
| | | * | tests: moar | Artyom Nikitin | 2020-11-17 | 1 | -0/+38 |
| | | | | |||||
| | | * | chore: revert version bump | Artyom Nikitin | 2020-11-17 | 1 | -1/+1 |
| | | | | |||||
| | | * | style: fix typo | Artyom Nikitin | 2020-11-17 | 1 | -1/+1 |
| | | | | |||||
| | | * | test: fix for py27 | Artyom Nikitin | 2020-11-17 | 1 | -24/+26 |
| | | | | |||||
| | | * | test: add toy jsonpointer example | Artyom Nikitin | 2020-11-17 | 1 | -0/+11 |
| | | | | |||||
| | | * | test: update | Artyom Nikitin | 2020-11-16 | 1 | -0/+2 |
| | | | | |||||
| | | * | chore: bump version | Artyom Nikitin | 2020-11-16 | 1 | -1/+1 |
| | | | | |||||
| | | * | test: add more tests | Artyom Nikitin | 2020-11-15 | 1 | -0/+22 |
| | | | | |||||
| | | * | doc: fix docstrings | Artyom Nikitin | 2020-11-13 | 1 | -3/+6 |
| | | | | |||||
| | | * | test: custo json pointer | Artyom Nikitin | 2020-11-13 | 1 | -0/+54 |
| | | | | |||||
| | | * | feat: add custom json pointer support | Artyom Nikitin | 2020-11-13 | 1 | -32/+44 |
| |_|/ |/| | | |||||
* | | | Merge pull request #112 from Alanscut/issue-111 | Stefan Kögl | 2020-06-22 | 2 | -1/+18 |
|\ \ \ | | | | | | | | | fix #111: optimizing exception message |