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.
Merge remote-tracking branch 'origin/master' into 102-path
- Loading branch information
Showing
275 changed files
with
1,591 additions
and
87 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
24 changes: 24 additions & 0 deletions
24
.../metafix/integration/bind/fromJson/toJson/listArrayOfObjectsAndMoveSubfield/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,24 @@ | ||
{ | ||
"author" : [ { | ||
"name" : "RUVIVAL Team", | ||
"type" : "Person" | ||
}, { | ||
"name" : "Samuel Duval", | ||
"type" : "Person" | ||
}, { | ||
"name" : "Berenice Lopez Mendez", | ||
"type" : "Person" | ||
}, { | ||
"name" : "Lukas Schreiner", | ||
"type" : "Person" | ||
}, { | ||
"name" : "Isidora Vrbavac", | ||
"type" : "Person" | ||
} ] | ||
} | ||
{ | ||
"author" : [ { | ||
"name" : "Jürgen Böhner", | ||
"type" : "Person" | ||
} ] | ||
} |
32 changes: 32 additions & 0 deletions
32
...ure/metafix/integration/bind/fromJson/toJson/listArrayOfObjectsAndMoveSubfield/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,32 @@ | ||
{ | ||
"author": [ | ||
{ | ||
"name": "RUVIVAL Team", | ||
"@type": "Person" | ||
}, | ||
{ | ||
"name": "Samuel Duval", | ||
"@type": "Person" | ||
}, | ||
{ | ||
"name": "Berenice Lopez Mendez", | ||
"@type": "Person" | ||
}, | ||
{ | ||
"name": "Lukas Schreiner", | ||
"@type": "Person" | ||
}, | ||
{ | ||
"name": "Isidora Vrbavac", | ||
"@type": "Person" | ||
} | ||
] | ||
} | ||
{ | ||
"author": [ | ||
{ | ||
"@type": "Person", | ||
"name": "Jürgen Böhner" | ||
} | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
...cture/metafix/integration/bind/fromJson/toJson/listArrayOfObjectsAndMoveSubfield/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,3 @@ | ||
do list(path:"author[]") | ||
move_field("@type","type") | ||
end |
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
...gration/bind/fromJson/toJson/listArrayOfObjectsWithVariableAndPathWildcards/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,23 @@ | ||
{ | ||
"arrayOfObjects_1" : [ { | ||
"name" : "red", | ||
"type" : "color" | ||
}, { | ||
"name" : "green", | ||
"type" : "color" | ||
}, { | ||
"name" : "blue", | ||
"type" : "color" | ||
} ], | ||
"arrayOfObjects_2" : [ { | ||
"name" : "purple", | ||
"type" : "color" | ||
}, { | ||
"name" : "orange", | ||
"type" : "color" | ||
}, { | ||
"name" : "yellow", | ||
"type" : "color" | ||
} ], | ||
"test" : [ "red", "green", "blue", "purple", "orange", "yellow" ] | ||
} |
23 changes: 23 additions & 0 deletions
23
...ntegration/bind/fromJson/toJson/listArrayOfObjectsWithVariableAndPathWildcards/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,23 @@ | ||
{ | ||
"arrayOfObjects_1" : [ { | ||
"name": "red", | ||
"type" : "color" | ||
}, { | ||
"name":"green", | ||
"type" : "color" | ||
}, { | ||
"name":"blue", | ||
"type" : "color" | ||
} ], | ||
"arrayOfObjects_2" : [ { | ||
"name": "purple", | ||
"type" : "color" | ||
}, { | ||
"name":"orange", | ||
"type" : "color" | ||
}, { | ||
"name":"yellow", | ||
"type" : "color" | ||
} ], | ||
"test" : [ ] | ||
} |
3 changes: 3 additions & 0 deletions
3
.../integration/bind/fromJson/toJson/listArrayOfObjectsWithVariableAndPathWildcards/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,3 @@ | ||
do list(path: "arrayOfObjects??[]", "var": "$i") | ||
copy_field("$i.name", "test[].$append") | ||
end |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
...listArrayOfObjectsWithVariableUnlessExistsWithOutsideReferenceAndCopy_field/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,15 @@ | ||
{ | ||
"arrayOfObjects" : [ { | ||
"name" : "red", | ||
"type" : "color" | ||
}, { | ||
"name" : "green", | ||
"type" : "color" | ||
}, { | ||
"name" : "blue", | ||
"type" : "color" | ||
} ], | ||
"test" : { | ||
"key" : "red" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...on/listArrayOfObjectsWithVariableUnlessExistsWithOutsideReferenceAndCopy_field/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,12 @@ | ||
{ | ||
"arrayOfObjects" : [ { | ||
"name": "red", | ||
"type" : "color" | ||
}, { | ||
"name":"green", | ||
"type" : "color" | ||
}, { | ||
"name":"blue", | ||
"type" : "color" | ||
} ] | ||
} |
5 changes: 5 additions & 0 deletions
5
...Json/listArrayOfObjectsWithVariableUnlessExistsWithOutsideReferenceAndCopy_field/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,5 @@ | ||
do list(path: "arrayOfObjects[]", "var": "$i") | ||
unless exists("test.key") | ||
copy_field("$i.name", "test.key") | ||
end | ||
end |
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
...mpleArrayOfObjectsWithVariableAndCopy_fieldListValueToAnotherArrayOfStrings/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,13 @@ | ||
{ | ||
"arrayOfObjects" : [ { | ||
"name" : "red", | ||
"type" : "color" | ||
}, { | ||
"name" : "green", | ||
"type" : "color" | ||
}, { | ||
"name" : "blue", | ||
"type" : "color" | ||
} ], | ||
"array" : [ "red", "green", "blue" ] | ||
} |
13 changes: 13 additions & 0 deletions
13
...tSimpleArrayOfObjectsWithVariableAndCopy_fieldListValueToAnotherArrayOfStrings/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,13 @@ | ||
{ | ||
"arrayOfObjects" : [ { | ||
"name": "red", | ||
"type" : "color" | ||
}, { | ||
"name":"green", | ||
"type" : "color" | ||
}, { | ||
"name":"blue", | ||
"type" : "color" | ||
} ], | ||
"array" : [ ] | ||
} |
3 changes: 3 additions & 0 deletions
3
...istSimpleArrayOfObjectsWithVariableAndCopy_fieldListValueToAnotherArrayOfStrings/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,3 @@ | ||
do list(path: "arrayOfObjects[]", "var": "$i") | ||
copy_field("$i.name", "array[].$append") | ||
end |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
...rayOfObjectsWithVariableAndCopy_fieldListValueToAnotherNestedArrayOfStrings/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,15 @@ | ||
{ | ||
"arrayOfObjects" : [ { | ||
"name" : "red", | ||
"type" : "color" | ||
}, { | ||
"name" : "green", | ||
"type" : "color" | ||
}, { | ||
"name" : "blue", | ||
"type" : "color" | ||
} ], | ||
"test" : { | ||
"array" : [ "red", "green", "blue" ] | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...eArrayOfObjectsWithVariableAndCopy_fieldListValueToAnotherNestedArrayOfStrings/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,13 @@ | ||
{ | ||
"arrayOfObjects" : [ { | ||
"name": "red", | ||
"type" : "color" | ||
}, { | ||
"name":"green", | ||
"type" : "color" | ||
}, { | ||
"name":"blue", | ||
"type" : "color" | ||
} ], | ||
"test" : { "array" : [ ] } | ||
} |
3 changes: 3 additions & 0 deletions
3
...pleArrayOfObjectsWithVariableAndCopy_fieldListValueToAnotherNestedArrayOfStrings/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,3 @@ | ||
do list(path: "arrayOfObjects[]", "var": "$i") | ||
copy_field("$i.name", "test.array[].$append") | ||
end |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...ation/bind/fromJson/toJson/listSimpleArrayOfStringsWithoutVariableAndAppend/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 @@ | ||
{ | ||
"colors" : [ "Red is a nice color", "Green is a nice color", "Blue is a nice color" ] | ||
} |
3 changes: 3 additions & 0 deletions
3
...egration/bind/fromJson/toJson/listSimpleArrayOfStringsWithoutVariableAndAppend/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,3 @@ | ||
{ | ||
"colors" : [ "red", "green", "blue" ] | ||
} |
4 changes: 4 additions & 0 deletions
4
...ntegration/bind/fromJson/toJson/listSimpleArrayOfStringsWithoutVariableAndAppend/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,4 @@ | ||
do list(path:"colors[]") | ||
upcase(".") | ||
append(".", " is a nice color") | ||
end |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...ntegration/bind/fromJson/toJson/listSimpleArrayOfStringsWithoutVariableAndAppend/todo.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 #191 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
.../org/metafacture/metafix/integration/conditional/fromJson/toJson/ifWithElse/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,30 @@ | ||
{ | ||
"name" : "red", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "green", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "blue", | ||
"type" : "color", | ||
"test" : "true" | ||
} | ||
{ | ||
"name" : "purple", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "orange", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "yellow", | ||
"type" : "color", | ||
"test" : "false" | ||
} |
24 changes: 24 additions & 0 deletions
24
...ces/org/metafacture/metafix/integration/conditional/fromJson/toJson/ifWithElse/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,24 @@ | ||
{ | ||
"name": "red", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "green", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "blue", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "purple", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "orange", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "yellow", | ||
"type": "color" | ||
} |
5 changes: 5 additions & 0 deletions
5
...urces/org/metafacture/metafix/integration/conditional/fromJson/toJson/ifWithElse/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,5 @@ | ||
if all_equal("name", "blue") | ||
add_field("test", "true") | ||
else | ||
add_field("test", "false") | ||
end |
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
...afacture/metafix/integration/conditional/fromJson/toJson/ifWithElsifAndElse/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,30 @@ | ||
{ | ||
"name" : "red", | ||
"type" : "color", | ||
"test_2" : "true" | ||
} | ||
{ | ||
"name" : "green", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "blue", | ||
"type" : "color", | ||
"test" : "true" | ||
} | ||
{ | ||
"name" : "purple", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "orange", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "yellow", | ||
"type" : "color", | ||
"test" : "false" | ||
} |
24 changes: 24 additions & 0 deletions
24
...metafacture/metafix/integration/conditional/fromJson/toJson/ifWithElsifAndElse/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,24 @@ | ||
{ | ||
"name": "red", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "green", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "blue", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "purple", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "orange", | ||
"type": "color" | ||
} | ||
{ | ||
"name": "yellow", | ||
"type": "color" | ||
} |
7 changes: 7 additions & 0 deletions
7
...g/metafacture/metafix/integration/conditional/fromJson/toJson/ifWithElsifAndElse/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,7 @@ | ||
if all_equal("name", "blue") | ||
add_field("test", "true") | ||
elsif all_equal("name", "red") | ||
add_field("test_2", "true") | ||
else | ||
add_field("test", "false") | ||
end |
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
.../metafix/integration/conditional/fromJson/toJson/ifWithMultipleElsifAndElse/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,30 @@ | ||
{ | ||
"name" : "red", | ||
"type" : "color", | ||
"test_2" : "true" | ||
} | ||
{ | ||
"name" : "green", | ||
"type" : "color", | ||
"test_4" : "true" | ||
} | ||
{ | ||
"name" : "blue", | ||
"type" : "color", | ||
"test" : "true" | ||
} | ||
{ | ||
"name" : "purple", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "orange", | ||
"type" : "color", | ||
"test" : "false" | ||
} | ||
{ | ||
"name" : "yellow", | ||
"type" : "color", | ||
"test_3" : "true" | ||
} |
Oops, something went wrong.