Closed Archangelza1 closed 1 month ago
Thanks for the PR @Archangelza1! We can't merge it as-is as it would break backwards-compatibility, but the new behavior could be introduced via extra configuration.
@hassy I have made an update to the code to allow backwards compatibility
@hassy Any update on this PR?
hi @Archangelza1 apologies for the delay on this one. Thanks for making the changes but it doesn't get us there completely:
multiple
is not set, that's good.multiple
to true
is now equivalent to current behaviormultiple
to false
will return all results - this is not very intuitiveIdeally not setting multiple
at all should be equivalent to setting multiple
= false, and setting multiple
to true should add new behavior.
I'll merge this and fix it up in a separate commit.
Failing tests are ones that rely on a secret which is not passed to CI runs from forks. The core test suite is passing.
Description
This updates the JSON parse logic so that it returns what is requested by the user using the JSONpath-plus standard queries
refactors the
extractJSONPath
function to improve its flexibility and simplify its implementation.Pre-merge checklist
This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.