Skip to content

Commit

Permalink
Update "flixel" example to use JSONPatch for merging.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Jul 26, 2024
1 parent 3fe3335 commit 228bd92
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 66 deletions.
8 changes: 0 additions & 8 deletions samples/flixel/mods/mod1/_merge/data/objects.json

This file was deleted.

8 changes: 0 additions & 8 deletions samples/flixel/mods/mod2/_merge/data/objects.json

This file was deleted.

11 changes: 3 additions & 8 deletions samples/flixel/mods/mod3/_merge/data/objects.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"merge":[
{
"target":"object_2",
"payload":{"value":"hibiscus"}
}
]
}
[
{ "op": "replace", "path": "$..value", "value": "chocolate"}
]
3 changes: 3 additions & 0 deletions samples/flixel/mods/mod4/_merge/data/objects.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
{ "op": "replace", "path": "/nested/object/array", "value": ["foo"] }
]
6 changes: 4 additions & 2 deletions samples/flixel/mods/mod5/_append/data/objects.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"object_3":{"value":"chocolate"}
}
"object_3": {
"value": "chocolate"
}
}
11 changes: 3 additions & 8 deletions samples/flixel/mods/mod5/_merge/data/objects.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"merge":[
{
"target":"nested.object.array",
"payload":["a","b","c","d"]
}
]
}
[
{ "op": "add", "path": "/nested/object/array/-", "value": "d" }
]
32 changes: 0 additions & 32 deletions samples/openfl_firetongue/assets/locales/index2.xml

This file was deleted.

0 comments on commit 228bd92

Please sign in to comment.