Repository navigation
Comparing changes
Open a pull request
base repository: stefankoegl/python-json-patch
base: v1.39
head repository: stefankoegl/python-json-patch
compare: v1.40
- 9 commits
- 6 files changed
- 5 contributors
Commits on Nov 2, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 11d148c - Browse repository at this point
Copy the full SHA 11d148cView commit details -
Attach failing operation to JsonPatchException as
opBrings #126 up to date with current master. JsonPatchException now accepts an optional `op` keyword argument, and all exceptions raised while constructing or applying a patch operation carry the failing operation (the PatchOperation instance, or the raw operation dict if it could not be constructed). Compared to the original PR, the constructor now forwards the message to Exception, which fixes a TypeError ("got multiple values for argument 'op'") when raising with both a message and op. Tests added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PewzpkvyJUvFMnnjKxmyNd
Configuration menu - View commit details
-
Copy full SHA for 5eccc03 - Browse repository at this point
Copy the full SHA 5eccc03View commit details -
Merge pull request #246 from PerchAnton/codex/cli-parse-patch-once
Reject invalid CLI patches before modifying the input file
Configuration menu - View commit details
-
Copy full SHA for 1a53dd3 - Browse repository at this point
Copy the full SHA 1a53dd3View commit details -
Add option to generate test operations in diffs
make_patch, JsonPatch.from_diff and DiffBuilder take a new keyword argument generate_test_ops (default False). When set, each remove and replace operation of the generated patch is preceded by a test operation that checks the value it removes or replaces. The patch then records the previous values and fails with JsonPatchTestFailed when applied to a document that differs there. Removals that the diff turns into moves are not tested. jsondiff gets a matching -t/--test-ops option. Based on #154 by Robert Cochran, reimplemented on top of the current diff engine, which resolves array indices when replaying operations, so the test operations get the same indices as the operations they guard. The new argument is added after the existing ones, so positional callers (including of `optimization`) are unaffected. Co-Authored-By: Robert Cochran <robert.cochran@peachfinance.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PewzpidDeSzMcCa4Krt54E
Configuration menu - View commit details
-
Copy full SHA for 80e2796 - Browse repository at this point
Copy the full SHA 80e2796View commit details -
Report move/copy and string-entry failures against the original opera…
…tion - MoveOperation and CopyOperation delegate to internal, synthetic RemoveOperation / AddOperation instances. Exceptions raised by those now have `op` set to the enclosing move/copy operation, so callers can identify the operation that is actually part of the patch. - The "sequence of strings" check in JsonPatch.__init__ now attaches the offending entry as `op`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PewzpkvyJUvFMnnjKxmyNd
Configuration menu - View commit details
-
Copy full SHA for bafa36c - Browse repository at this point
Copy the full SHA bafa36cView commit details -
Merge pull request #247 from stefankoegl/claude/confident-curie-9x5ahd
Attach failing operation to JsonPatchException as `op`
Configuration menu - View commit details
-
Copy full SHA for 20bfe05 - Browse repository at this point
Copy the full SHA 20bfe05View commit details -
Copy the values of generated test operations
The test operations referred to the values in src, so changing src after diffing changed what the patch tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PewzpidDeSzMcCa4Krt54E
Configuration menu - View commit details
-
Copy full SHA for b5385cc - Browse repository at this point
Copy the full SHA b5385ccView commit details -
Merge pull request #248 from stefankoegl/claude/funny-lamport-kge2fr
Add option to generate test operations in diffs
Configuration menu - View commit details
-
Copy full SHA for 6a6d1a7 - Browse repository at this point
Copy the full SHA 6a6d1a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66e1052 - Browse repository at this point
Copy the full SHA 66e1052View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.39...v1.40