Caíque Coelho
04/14/2022, 5:37 PMLike({array: [1, 2, 3]})
, but when I’m running this contract in my provider verification the provider return an array with 6 elements and the validation fail. Is there any way to ignore the array length and just verify if the response in my provider contains an array with length greater than 0 in the body?Matt (pactflow.io / pact-js / pact-go)
eachLike
variant which you use in place of arrays, and supply an example item and min lengthCaíque Coelho
04/14/2022, 10:12 PMLike({
"shelves": [
{
"id": "31239bf8-e8d8-4893-a3de-",
"type": "BILLBOARD",
"parentIds": [],
"displayName": "Destaques",
"order": 1,
"active": True,
"imageUrl": None,
"state": None,
"cities": None,
"startsAt": "2020-10-01T03:00:00.000Z",
"endsAt": None,
"isRoot": True,
"items": {
"result": [
{
"id": "b7566f41-db87-4b03-bef2",
"type": "BANNER",
"displayName": "TESTEQA10",
"image": ".jpg",
},
{
"id": "14ed8ec5-bca2-426d-bbcc",
"type": "BANNER",
"displayName": "TESTE DE DATAs",
"image": ".jpg",
},
],
"hasMoreItems": False,
},
}
],
"hasNextPage": True,
"nextCursor": "MQ==",
"images": [],
})
Caíque Coelho
04/14/2022, 10:13 PMresult
listMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Caíque Coelho
04/14/2022, 10:16 PM