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.
Also one for #121
- Loading branch information
Showing
39 changed files
with
293 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ctAsRepeatedObjectAndThenArrayOfStringsIntoTheArrayOfObjectsWithLastWildcard/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 #132 may also be related to #113 |
11 changes: 11 additions & 0 deletions
11
...tAsRepeatedObjectAndThenArrayOfStringsIntoTheArrayOfObjectsWithLastWildcard/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,11 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3", | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ] | ||
} ] | ||
} |
10 changes: 10 additions & 0 deletions
10
...jectAsRepeatedObjectAndThenArrayOfStringsIntoTheArrayOfObjectsWithLastWildcard/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,10 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test": [{ | ||
"key": "value_1" | ||
},{ | ||
"key": "value_2" | ||
},{ | ||
"key": "value_3" | ||
}] | ||
} |
2 changes: 2 additions & 0 deletions
2
...ObjectAsRepeatedObjectAndThenArrayOfStringsIntoTheArrayOfObjectsWithLastWildcard/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,2 @@ | ||
copy_field("test[]", "repeatedTest") | ||
copy_field("animal_string_Array[]", "test[].$last.animal_string_Array[]") |
8 changes: 8 additions & 0 deletions
8
...bjectAsRepeatedObjectAndThenArrayOfStringsIntoTheArrayOfObjectsWithLastWildcard/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") | ||
; |
4 changes: 4 additions & 0 deletions
4
...facture/metafix/integration/record/fromJson/toJson/copy_fieldArrayOfStrings/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 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test" : [ "dog", "elefant", "shark" ] | ||
} |
7 changes: 7 additions & 0 deletions
7
...etafacture/metafix/integration/record/fromJson/toJson/copy_fieldArrayOfStrings/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,7 @@ | ||
{ | ||
"animal_string_Array" : [ | ||
"dog", | ||
"elefant", | ||
"shark" | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
.../metafacture/metafix/integration/record/fromJson/toJson/copy_fieldArrayOfStrings/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("animal_string_Array[]", "test[]") |
8 changes: 8 additions & 0 deletions
8
...metafacture/metafix/integration/record/fromJson/toJson/copy_fieldArrayOfStrings/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") | ||
; |
6 changes: 6 additions & 0 deletions
6
.../integration/record/fromJson/toJson/copy_fieldArrayOfStringsAsRepeatedField/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,6 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"animals_repeated_SimpleField" : "dog", | ||
"animals_repeated_SimpleField" : "elefant", | ||
"animals_repeated_SimpleField" : "shark" | ||
} |
7 changes: 7 additions & 0 deletions
7
...fix/integration/record/fromJson/toJson/copy_fieldArrayOfStringsAsRepeatedField/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,7 @@ | ||
{ | ||
"animal_string_Array" : [ | ||
"dog", | ||
"elefant", | ||
"shark" | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...tafix/integration/record/fromJson/toJson/copy_fieldArrayOfStringsAsRepeatedField/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("animal_string_Array[]", "animals_repeated_SimpleField") |
8 changes: 8 additions & 0 deletions
8
...afix/integration/record/fromJson/toJson/copy_fieldArrayOfStringsAsRepeatedField/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
...omJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithAsteriskWildcard/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 #121 |
20 changes: 20 additions & 0 deletions
20
...mJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithAsteriskWildcard/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,20 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test" : [ { | ||
"key": "value_1", | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ] | ||
}, { | ||
"key": "value_2", | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ] | ||
}, { | ||
"key": "value_3", | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ] | ||
} ], | ||
"test_2" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ] | ||
} |
17 changes: 17 additions & 0 deletions
17
...fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithAsteriskWildcard/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,17 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test": [{ | ||
"key" : "value_1" | ||
},{ | ||
"key" : "value_2" | ||
},{ | ||
"key" : "value_3" | ||
}], | ||
"test_2": [{ | ||
"key" : "value_1" | ||
},{ | ||
"key" : "value_2" | ||
},{ | ||
"key" : "value_3" | ||
}] | ||
} |
1 change: 1 addition & 0 deletions
1
...d/fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithAsteriskWildcard/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("animal_string_Array[]", "test[].*.animal_string_Array[]") |
8 changes: 8 additions & 0 deletions
8
.../fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithAsteriskWildcard/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") | ||
; |
18 changes: 18 additions & 0 deletions
18
...fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithFirstWildcard/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,18 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test" : [ { | ||
"key" : "value_1", | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ] | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ], | ||
"test_2" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ] | ||
} |
17 changes: 17 additions & 0 deletions
17
...rd/fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithFirstWildcard/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,17 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test": [{ | ||
"key": "value_1" | ||
},{ | ||
"key": "value_2" | ||
},{ | ||
"key": "value_3" | ||
}], | ||
"test_2" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ] | ||
} |
2 changes: 2 additions & 0 deletions
2
...cord/fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithFirstWildcard/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,2 @@ | ||
copy_field("animal_string_Array[]", "test[].$first.animal_string_Array[]") | ||
|
8 changes: 8 additions & 0 deletions
8
...ord/fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithFirstWildcard/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") | ||
; |
20 changes: 20 additions & 0 deletions
20
.../copy_fieldArrayOfStringsIntoArrayOfObjectsWithFirstWildcardAsRepeatedField/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,20 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test" : [ { | ||
"key" : "value_1", | ||
"animals_repeated_SimpleField" : "dog", | ||
"animals_repeated_SimpleField" : "elefant", | ||
"animals_repeated_SimpleField" : "shark" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ], | ||
"test_2" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3" | ||
} ] | ||
} |
17 changes: 17 additions & 0 deletions
17
...son/copy_fieldArrayOfStringsIntoArrayOfObjectsWithFirstWildcardAsRepeatedField/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,17 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test": [{ | ||
"key": "value_1" | ||
},{ | ||
"key": "value_2" | ||
},{ | ||
"key": "value_3" | ||
}], | ||
"test_2": [{ | ||
"key" : "value_1" | ||
},{ | ||
"key" : "value_2" | ||
},{ | ||
"key" : "value_3" | ||
}] | ||
} |
2 changes: 2 additions & 0 deletions
2
...oJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithFirstWildcardAsRepeatedField/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,2 @@ | ||
copy_field("animal_string_Array[]", "test[].$first.animals_repeated_SimpleField") | ||
|
8 changes: 8 additions & 0 deletions
8
...Json/copy_fieldArrayOfStringsIntoArrayOfObjectsWithFirstWildcardAsRepeatedField/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") | ||
; |
11 changes: 11 additions & 0 deletions
11
.../fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithLastWildcard/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,11 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test" : [ { | ||
"key" : "value_1" | ||
}, { | ||
"key" : "value_2" | ||
}, { | ||
"key" : "value_3", | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ] | ||
} ] | ||
} |
10 changes: 10 additions & 0 deletions
10
...ord/fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithLastWildcard/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,10 @@ | ||
{ | ||
"animal_string_Array" : [ "dog", "elefant", "shark" ], | ||
"test": [{ | ||
"key": "value_1" | ||
},{ | ||
"key": "value_2" | ||
},{ | ||
"key": "value_3" | ||
}] | ||
} |
1 change: 1 addition & 0 deletions
1
...ecord/fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithLastWildcard/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("animal_string_Array[]", "test[].$last.animal_string_Array[]") |
8 changes: 8 additions & 0 deletions
8
...cord/fromJson/toJson/copy_fieldArrayOfStringsIntoArrayOfObjectsWithLastWildcard/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") | ||
; |
10 changes: 10 additions & 0 deletions
10
.../test/resources/org/metafacture/metafix/integration/record/fromJson/toJson/input_old.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,10 @@ | ||
{ | ||
"animal_string_Array": [ | ||
"dog", | ||
"elefant" | ||
], | ||
"animal_object_Array": [ | ||
{"name":"dog"}, | ||
{"name":"elefant"} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
...facture/metafix/integration/record/fromJson/toJson/move_fieldArrayOfStrings/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,3 @@ | ||
{ | ||
"test" : [ "dog", "elefant", "shark" ] | ||
} |
7 changes: 7 additions & 0 deletions
7
...etafacture/metafix/integration/record/fromJson/toJson/move_fieldArrayOfStrings/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,7 @@ | ||
{ | ||
"animal_string_Array" : [ | ||
"dog", | ||
"elefant", | ||
"shark" | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
.../metafacture/metafix/integration/record/fromJson/toJson/move_fieldArrayOfStrings/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("animal_string_Array[]", "test[]") |
8 changes: 8 additions & 0 deletions
8
...metafacture/metafix/integration/record/fromJson/toJson/move_fieldArrayOfStrings/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") | ||
; |
5 changes: 5 additions & 0 deletions
5
.../integration/record/fromJson/toJson/move_fieldArrayOfStringsToRepeatedField/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 @@ | ||
{ | ||
"animals_repeated_SimpleField" : "dog", | ||
"animals_repeated_SimpleField" : "elefant", | ||
"animals_repeated_SimpleField" : "shark" | ||
} |
7 changes: 7 additions & 0 deletions
7
...fix/integration/record/fromJson/toJson/move_fieldArrayOfStringsToRepeatedField/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,7 @@ | ||
{ | ||
"animal_string_Array" : [ | ||
"dog", | ||
"elefant", | ||
"shark" | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...tafix/integration/record/fromJson/toJson/move_fieldArrayOfStringsToRepeatedField/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("animal_string_Array[]", "animals_repeated_SimpleField") |
8 changes: 8 additions & 0 deletions
8
...afix/integration/record/fromJson/toJson/move_fieldArrayOfStringsToRepeatedField/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") | ||
; |