Fábio Rodrigues
02/18/2022, 10:52 AM"response": {
"status": 200,
"headers": {
"Content-Type": "application/json; charset=utf-8"
},
"body": {
"revisionBaseline": 1,
"baseProperties": [
{
"dataType": "",
"defaultValue": "",
"value": "",
"valueOrigin": "",
"key": ""
}
]
},
"matchingRules": {
"$.body.baseProperties[0].dataType": {
"match": "regex",
"regex": ".*"
},
"$.body.baseProperties[0].defaultValue": {
"match": "regex",
"regex": ".*"
},
"$.body.baseProperties[0].value": {
"match": "regex",
"regex": ".*"
},
"$.body.baseProperties[0].valueOrigin": {
"match": "regex",
"regex": ".*"
},
"$.body.baseProperties[0].key": {
"match": "regex",
"regex": ".*"
}
}
}
}
],
The problem is that it's just not 1 element but a array of them (at least 10+ of them)
How can we setup an expectation on consumer side that would check this (that it receives an array of objects like this). Is it possible, and if it is, how can we set it up?Fábio Rodrigues
02/18/2022, 10:55 AMActual array is too long and should not contain a Hash at $.baseProperties[1]
Actual array is too long and should not contain a Hash at $.baseProperties[2]
Actual array is too long and should not contain a Hash at $.baseProperties[3]
...
Actual array is too long and should not contain a Hash at $.baseProperties[34]
Actual array is too long and should not contain a Hash at $.baseProperties[35]
Fábio Rodrigues
02/18/2022, 2:59 PM