-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...acture/metafix/integration/record/fromJson/toJson/add_fieldSimpleDestructive/disabled.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
See issue #116 |
4 changes: 4 additions & 0 deletions
4
...cture/metafix/integration/record/fromJson/toJson/add_fieldSimpleDestructive/expected.json
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"test" : "test", | ||
"key" : "new_value" | ||
} |
4 changes: 4 additions & 0 deletions
4
...afacture/metafix/integration/record/fromJson/toJson/add_fieldSimpleDestructive/input.json
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"test" : "test", | ||
"key" : "old_value" | ||
} |
1 change: 1 addition & 0 deletions
1
...etafacture/metafix/integration/record/fromJson/toJson/add_fieldSimpleDestructive/test.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
add_field("key", "new_value") |
8 changes: 8 additions & 0 deletions
8
...tafacture/metafix/integration/record/fromJson/toJson/add_fieldSimpleDestructive/test.flux
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FLUX_DIR + "input.json" | ||
|open-file | ||
|as-records | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |
1 change: 1 addition & 0 deletions
1
...cture/metafix/integration/record/fromJson/toJson/copy_fieldSimpleDestructive/disabled.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
See issue #116 |
5 changes: 5 additions & 0 deletions
5
...ture/metafix/integration/record/fromJson/toJson/copy_fieldSimpleDestructive/expected.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"test" : "test", | ||
"key" : "new_value", | ||
"key_2" : "new_value" | ||
} |
5 changes: 5 additions & 0 deletions
5
...facture/metafix/integration/record/fromJson/toJson/copy_fieldSimpleDestructive/input.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"test" : "test", | ||
"key" : "old_value", | ||
"key_2" : "new_value" | ||
} |
1 change: 1 addition & 0 deletions
1
...tafacture/metafix/integration/record/fromJson/toJson/copy_fieldSimpleDestructive/test.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
copy_field("key_2", "key") |
8 changes: 8 additions & 0 deletions
8
...afacture/metafix/integration/record/fromJson/toJson/copy_fieldSimpleDestructive/test.flux
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FLUX_DIR + "input.json" | ||
|open-file | ||
|as-records | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |
1 change: 1 addition & 0 deletions
1
...cture/metafix/integration/record/fromJson/toJson/move_fieldSimpleDestructive/disabled.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
See issue #116 |
4 changes: 4 additions & 0 deletions
4
...ture/metafix/integration/record/fromJson/toJson/move_fieldSimpleDestructive/expected.json
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"test" : "test", | ||
"key" : "new_value" | ||
} |
5 changes: 5 additions & 0 deletions
5
...facture/metafix/integration/record/fromJson/toJson/move_fieldSimpleDestructive/input.json
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"test" : "test", | ||
"key" : "old_value", | ||
"key_2" : "new_value" | ||
} |
1 change: 1 addition & 0 deletions
1
...tafacture/metafix/integration/record/fromJson/toJson/move_fieldSimpleDestructive/test.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
move_field("key_2", "key") |
8 changes: 8 additions & 0 deletions
8
...afacture/metafix/integration/record/fromJson/toJson/move_fieldSimpleDestructive/test.flux
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FLUX_DIR + "input.json" | ||
|open-file | ||
|as-records | ||
|decode-json | ||
|fix(FLUX_DIR + "test.fix") | ||
|encode-json(prettyPrinting="true") | ||
|write(FLUX_DIR + "output-metafix.json") | ||
; |