Skip to content

feat: add json patch generator RFC 6902 support#43

Open
lukascivil wants to merge 9 commits intomasterfrom
feat/generate-json-patch
Open

feat: add json patch generator RFC 6902 support#43
lukascivil wants to merge 9 commits intomasterfrom
feat/generate-json-patch

Conversation

@lukascivil
Copy link
Copy Markdown
Owner

@lukascivil lukascivil commented Jul 23, 2023

Pending:

  1. Remove redundante OPs when have same parent
  2. Adjust path pattern

https://datatracker.ietf.org/doc/html/rfc6902/#section-5

@lukascivil lukascivil self-assigned this Jul 23, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ada6547) 0.00% compared to head (e739c62) 100.00%.

❗ Current head e739c62 differs from pull request most recent head 5bbb905. Consider uploading reports for the commit 5bbb905 to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##           master       #43        +/-   ##
=============================================
+ Coverage        0   100.00%   +100.00%     
=============================================
  Files           0         7         +7     
  Lines           0        94        +94     
  Branches        0        31        +31     
=============================================
+ Hits            0        94        +94     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lukascivil lukascivil changed the title feat: add json patch generator feat: add json patch generator RFC 6902 support Jul 23, 2023
@lukascivil lukascivil force-pushed the feat/generate-json-patch branch from f16ffe7 to b699e68 Compare July 28, 2023 01:09
@lukascivil lukascivil force-pushed the feat/generate-json-patch branch 2 times, most recently from 40284fa to 47166f1 Compare December 30, 2023 15:22
@lukascivil lukascivil force-pushed the feat/generate-json-patch branch from 5bbb905 to 5d9a1f1 Compare April 23, 2026 05:03
const index = lastToken === '-' ? parent.length : Number(lastToken)
parent.splice(index, 0, deepClone(op.value))
} else {
parent[lastToken] = deepClone(op.value)
if (isArrayParent) {
parent.splice(Number(lastToken), 1)
} else {
delete parent[lastToken]
if (isArrayParent) {
parent[Number(lastToken)] = deepClone(op.value)
} else {
parent[lastToken] = deepClone(op.value)
@lukascivil lukascivil marked this pull request as ready for review April 23, 2026 05:58
@lukascivil lukascivil force-pushed the feat/generate-json-patch branch from f7393e6 to 877d2be Compare April 24, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants