This repository has been archived by the owner on Jan 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change
add_field()
Fix function to destructive behaviour for Catman…
…du compatibility. (#116) NOTE: `add_field()` and `set_field()` are now equivalent, but according to Catmandu's documentation `set_field()` "will not create the intermediate structures if they are missing".
- Loading branch information
1 parent
b7c318f
commit 5bc0378
Showing
8 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
metafix/src/test/resources/org/metafacture/metafix/fixes/include.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
unless exists("trace") | ||
set_array("trace") | ||
end | ||
add_field("trace", "before include") | ||
add_field("trace.$append", "before include") | ||
include("./base.fix") | ||
add_field("trace", "after include") | ||
add_field("trace.$append", "after include") |
4 changes: 2 additions & 2 deletions
4
metafix/src/test/resources/org/metafacture/metafix/fixes/nested.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
set_array("trace") | ||
add_field("trace", "before nested") | ||
add_field("trace.$append", "before nested") | ||
include("src/test/resources/org/metafacture/metafix/fixes/include.fix") | ||
add_field("trace", "after nested") | ||
add_field("trace.$append", "after nested") |
1 change: 0 additions & 1 deletion
1
...etafacture/metafix/integration/record/fromJson/toJson/add_fieldSimpleDestructive/todo.txt
This file was deleted.
Oops, something went wrong.