curious if this is a bug with `atLeastOneLike` . ...
# pact-go
h
curious if this is a bug with
atLeastOneLike
. in my case i see body match fail for a fields response array mentioning index 0 and 2 failed to match but not index 1. so in reality at least one matched but the test still failed on the pact-go provider.
Copy code
1.1) has a matching body
           $.events[2].data.image -> Actual map is missing the following keys: imageUrl
           $.events[0] -> Actual map is missing the following keys: appointment
           $.events[0].data.image -> Actual map is missing the following keys: imageUrl
           $.events[2] -> Actual map is missing the following keys: appointment
the above implies i matched 1 event, right?
m
All of the objects in
atLeastOneLike
must have the same minimum shape
the above errors are saying that some of the objects in the array are missing key elements
h
yeah, that's seems to be how it works then... although the name is kind of confusing,
atLeastOneLike
. thanks for the quick reply.
👍 1
m
yes, in hindsight I can see that!