Hi all, quick question. I see that pact assert bot...
# pact-js
n
Hi all, quick question. I see that pact assert both the key and value pairs in the expected response. My issue with that is that the api we are using is configured in a way that it sends us an array of 5 rates in a random order and there is no way of ordering them unfortunately. Meaning that I cannot assert the values because they are changing order every time. How can I bypass this?
n
Amazing, thank you Yousaf!!
🙌 1
Do you know if it is possible to add some matcher to the query path? I have a url that looks like
/api/payments/v1/fx_rates/${some-fx-id}
and want the provider to be able to verify that it is just some random string of numbers, I know of course that there are many matchers for strings and numbers, I was just unsure of how to implement a matcher to the url path.
Is it possible to verify in pact that the id that is passed as a path param is the same id that is in the response body?