Skip to content
Myr

syntax fixes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Michel Weststrate · committed by Michel Weststrate · parent 341cfeb · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:readme.md+2 added-2 removed
287 unmodified lines
288This makes processing patches easier. If you want to normalize to the official specification, `patch.path = patch.path.join("/")` should do the trick. Anyway, this is what a bunch of patches and their inverse could look like:289290```json291[292 { "op": "replace", "path": ["profile"], "value": { "name": "Veria", age: 5 }},292 { "op": "replace", "path": ["profile"], "value": { "name": "Veria", "age": 5 }},293 { "op": "remove", "path": ["tags", 3] }294]295```296297```json298[299 { "op": "replace", "path": ["profile"], "value": { "name": "Noa", age: 6 }},299 { "op": "replace", "path": ["profile"], "value": { "name": "Noa", "age": 6 }},300 { "op": "add", "path": ["tags", 3], "value": "kiddo"},301]302```303
245 unmodified lines