Karate 如何在json响应空手道框架中验证数组

Karate 如何在json响应空手道框架中验证数组,karate,Karate,在下面的示例中,如果warehouse是一个数组,我如何验证json响应,如本例所示: Scenario: using karate's simpler alternative to json-schema * def warehouseLocation = { latitude: '#number', longitude: '#number' } * def productStructure = """ { id: '#number', name: '#string', price: '

在下面的示例中,如果
warehouse
是一个数组,我如何验证json响应,如本例所示:

Scenario: using karate's simpler alternative to json-schema
* def warehouseLocation = { latitude: '#number', longitude: '#number' }
* def productStructure =
"""
{
 id: '#number',
 name: '#string',
 price: '#number? _ > 0',
 tags: '##[_ > 0] #string',
   dimensions: {
     length: '#number',
     width: '#number',
     height: '#number'
   },
 warehouseLocation: '##(warehouseLocation)'
}
"""
* def json = read('products.json')
* match json == '#[] productStructure'
我把#数组放在哪里。
我尝试过不同的问题,但都没用。谢谢

您的问题是询问
仓库
,我在您的示例中根本找不到。我想你是在问这个问题:

warehouseLocation:“#[]warehouseLocation”