metafacture / metafacture-fix

Work in progress towards an implementation of the Fix language for Metafacture
Apache License 2.0
6 stars 2 forks source link

Catmandu-Path-Wildcard-Support: `$prepend` #93

Closed TobiasNx closed 1 month ago

TobiasNx commented 2 years ago

Test for prepend: For array of strings: Here

Output should be:

{
    "animals":[
                        "earthworm".
                        "unicorn",
                        "human",
            "dog",
            "cat"
    ],
    "others": "human"
}

For array of objects: Here

Output should be:

{
    "animals":[
                        {"animal": "earthworm"}
                        {"animal": "unicorn"},
                        {"animal": "human"},
            {"animal": "dog"},
            {"animal": "cat"}
    ],
    "others": {"animal": "human"}
}
TobiasNx commented 2 years ago

Added a test scenario: https://github.com/TobiasNx/fix-FunctionalReview-Testing/tree/master/data/testing/prependArrays_strings

blackwinter commented 2 years ago

See also #92.

fsteeg commented 2 years ago

Will revisit after #102.

blackwinter commented 1 year ago

Integration tests: