Asserting and using conditions for an array response in Karate
问题 I've got a request that returns a list of responses in two possible structures, depending on the 'status'. { "listSize": 2, "itemList": [ { "id": , "Name": "", "submittedOn": "", "Reference": null, "status": "Receipted", "response": null }, { "id": 12345, "submittedOn": "", "Reference": null, "status": "Failed", "response": { "xml": "", "formErrors": [ { "error_type": "", "error_location":"", "error_message": "", } ] } }, ] } I need to check the structure for the status being either