Skip to content

Commit

Permalink
Add more example for fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Nov 23, 2023
1 parent 52c9102 commit ef6d44e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/examples/Fixes/append
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=append%28%22animal%22%2C+%22+is+cool%22%29%0Aappend%28%22animal_2.name%22%2C+%22+boss%22%29%0A&data=%7B%0A++%22animal%22%3A+%22bunny%22%2C%0A++%22animal_2%22%3A+%7B%0A++++%22name%22%3A+%22bird%22%2C%0A++++%22type%22%3A+%22TEST%22%0A++%7D%0A%7D%0A%0A%0A%0A
1 change: 1 addition & 0 deletions resources/examples/Fixes/filter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Filter+arrays+for+certain+values%0Afilter%28%22animals%5B%5D%22%2C+%22%5BZz%5Debra%22%29%0Afilter%28%22investigators%5B%5D%22%2C+%22Justus%7CBob%22%29%0Afilter%28%22tools%5B%5D%22%2C+%22.%2Aw%22%29%0A&data=%7B%0A++%22animals%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22zebra%22%2C+%22Zebra%22+%5D%2C%0A++%22investigators%22+%3A+%5B+%22Justus%22%2C+%22Peter%22%2C+%22Bob%22+%5D%2C%0A++%22tools%22+%3A+%5B+%22hammer%22%2C+%22saw%22%2C+%22bow%22+%5D%0A%7D%0A%0A%0A
1 change: 1 addition & 0 deletions resources/examples/Fixes/flatten
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Flatten+messy+array%0Aflatten%28%22animals%5B%5D%22%29%0A&data=%7B%0A++%22animals%22+%3A+%5B+%5B+%22ant%22%2C+%22dog%22+%5D%2C+%22cat%22%2C+%5B+%22fish%22%2C+%5B+%22zebra%22%2C+%22horse%22+%5D%2C+%22hippo%22+%5D%2C+%22giraffe%22+%5D%0A%7D%0A%0A
1 change: 1 addition & 0 deletions resources/examples/Fixes/move_field
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Move+or+rename+a+field%0Amove_field%28%22key%22%2C+%22movedKey%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A
1 change: 1 addition & 0 deletions resources/examples/Fixes/prepend
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=prepend%28%22animal%22%2C+%22brown+%22%29%0Aprepend%28%22animal_2.name%22%2C+%22bluey+%22%29%0A&data=%7B%0A++%22animal%22%3A+%22bunny%22%2C%0A++%22animal_2%22%3A+%7B%0A++++%22name%22%3A+%22bird%22%2C%0A++++%22type%22%3A+%22TEST%22%0A++%7D%0A%7D%0A%0A%0A%0A
1 change: 1 addition & 0 deletions resources/examples/Fixes/remove_field
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Remove+a+field%0Aremove_field%28%22delete%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%2C%0A++%22delete%22+%3A+%22me%22%0A%7D%0A
1 change: 1 addition & 0 deletions resources/examples/Fixes/replace_all
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=replace_all%28%22key%22%2C+%22o%22%2C+%22__%22%29%0A&data=%7B%0A++%22key%22+%3A+%22board%22%0A%7D%0A%0A%0A%0A
1 change: 1 addition & 0 deletions resources/examples/Fixes/retain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Only+keep+certain+fields%0Aretain%28%22key%22%2C%22key3%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%2C%0A++%22key2%22+%3A+%22word2%22%2C%0A++%22key3%22+%3A+%22word3%22%2C%0A++%22key4%22+%3A+%22word4%22++%0A%7D%0A

0 comments on commit ef6d44e

Please sign in to comment.