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
606 changed files
with
3,920 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
.gradle/ | ||
bin/ | ||
build/ | ||
generated/ | ||
xtext-gen/ | ||
.project | ||
.classpath | ||
out/ | ||
node_modules/ | ||
xtext-server/ | ||
|
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
3 changes: 3 additions & 0 deletions
3
...egration/bind/fromJson/toJson/listSimpleArrayOfStringsWithVariableAndAppend/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
...integration/bind/fromJson/toJson/listSimpleArrayOfStringsWithVariableAndAppend/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" ] | ||
} |
3 changes: 3 additions & 0 deletions
3
...x/integration/bind/fromJson/toJson/listSimpleArrayOfStringsWithVariableAndAppend/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:"colors[]", "var": "$i") | ||
append("$i", " is a nice color") | ||
end |
8 changes: 8 additions & 0 deletions
8
.../integration/bind/fromJson/toJson/listSimpleArrayOfStringsWithVariableAndAppend/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
...x/integration/bind/fromJson/toJson/listSimpleArrayOfStringsWithVariableAndAppend/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 #189 |
4 changes: 4 additions & 0 deletions
4
...Json/listSimpleArrayOfStringsWithVariableAndCopy_fieldListValueToTheOutside/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 @@ | ||
{ | ||
"colors" : [ "red", "green", "blue" ], | ||
"test" : [ "red", "green", "blue" ] | ||
} |
4 changes: 4 additions & 0 deletions
4
.../toJson/listSimpleArrayOfStringsWithVariableAndCopy_fieldListValueToTheOutside/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 @@ | ||
{ | ||
"colors" : [ "red", "green", "blue" ], | ||
"test" : [ ] | ||
} |
3 changes: 3 additions & 0 deletions
3
...on/toJson/listSimpleArrayOfStringsWithVariableAndCopy_fieldListValueToTheOutside/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:"colors[]", "var": "$i") | ||
copy_field("$i", "test[].$append") | ||
end |
8 changes: 8 additions & 0 deletions
8
...n/toJson/listSimpleArrayOfStringsWithVariableAndCopy_fieldListValueToTheOutside/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") | ||
; |
13 changes: 13 additions & 0 deletions
13
...tafacture/metafix/integration/conditional/fromJson/toJson/IfAny_equalSimple/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 @@ | ||
{ | ||
"type" : "dog" | ||
} | ||
{ | ||
"type" : "video" | ||
} | ||
{ | ||
"type" : "book", | ||
"test" : "test" | ||
} | ||
{ | ||
"type" : "stone" | ||
} |
13 changes: 13 additions & 0 deletions
13
.../metafacture/metafix/integration/conditional/fromJson/toJson/IfAny_equalSimple/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 @@ | ||
{ | ||
"type" : "dog" | ||
} | ||
{ | ||
"type" : "video" | ||
} | ||
{ | ||
"type" : "book" | ||
} | ||
{ | ||
"type" : "stone" | ||
} | ||
|
3 changes: 3 additions & 0 deletions
3
...rg/metafacture/metafix/integration/conditional/fromJson/toJson/IfAny_equalSimple/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 @@ | ||
if any_equal("type", "book") | ||
add_field("test", "test") | ||
end |
8 changes: 8 additions & 0 deletions
8
...g/metafacture/metafix/integration/conditional/fromJson/toJson/IfAny_equalSimple/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") | ||
; |
14 changes: 14 additions & 0 deletions
14
...metafix/integration/conditional/fromJson/toJson/ifAll_containArrayOfStrings/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,14 @@ | ||
{ | ||
"type" : [ "dog", "dog", "dog" ], | ||
"test" : "test" | ||
} | ||
{ | ||
"type" : [ "video", "dog", "dog" ], | ||
"test" : "test" | ||
} | ||
{ | ||
"type" : [ "book", "pc" ] | ||
} | ||
{ | ||
"type" : [ "human", "cat" ] | ||
} |
12 changes: 12 additions & 0 deletions
12
...re/metafix/integration/conditional/fromJson/toJson/ifAll_containArrayOfStrings/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 @@ | ||
{ | ||
"type" : [ "dog", "dog", "dog" ] | ||
} | ||
{ | ||
"type" : [ "video", "dog", "dog" ] | ||
} | ||
{ | ||
"type" : [ "book", "pc" ] | ||
} | ||
{ | ||
"type" : [ "human", "cat" ] | ||
} |
3 changes: 3 additions & 0 deletions
3
...ture/metafix/integration/conditional/fromJson/toJson/ifAll_containArrayOfStrings/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 @@ | ||
if all_contain("type[]", "o") | ||
add_field("test", "test") | ||
end |
8 changes: 8 additions & 0 deletions
8
...ure/metafix/integration/conditional/fromJson/toJson/ifAll_containArrayOfStrings/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") | ||
; |
14 changes: 14 additions & 0 deletions
14
...facture/metafix/integration/conditional/fromJson/toJson/ifAll_containSimple/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,14 @@ | ||
{ | ||
"type" : "dog" | ||
} | ||
{ | ||
"type" : "video", | ||
"test" : "test" | ||
} | ||
{ | ||
"type" : "book" | ||
} | ||
{ | ||
"type" : "stone", | ||
"test" : "test" | ||
} |
Oops, something went wrong.