This question came to my mind after asking another question here
Lets say my response is a complex array of JSON object and currently I test like this for complex object.
* def response = [{id: 1}, {id: 2}, {id: 3}.....]
* def schema = { id: "#number" }
* match response == '#[] schema'
I want to replace above match statement with the use of filerKeys() API possibly like as follows
* match response == karate.filterKeys([]schema, response)
Basically first parameter of karate.filterKeys() API should dynamically accept every JSON object from response array and filter against the second parameter response for a successful match.