Alan Zhu
11/25/2022, 2:31 AM{"sections": [
...
{
"facilities": [
{
"id": 433,
"key": "Swimming Pool (2019 format)",
"name": "Swimming Pool"
}
],
"id": 999,
"key": "Top Facilities",
"name": "Top facilities"
},
{
"facilities": [],
"id": 995,
"key": "Meals",
"name": "Price for meals"
},
{
"facilities": [],
"id": 997,
"key": "Languages Spoken",
"name": "Languages spoken"
}
...
]
}
Aaron
11/25/2022, 3:32 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
995
? Or do you want to check that each object in the list has an id
?Matt (pactflow.io / pact-js / pact-go)
Alan Zhu
11/25/2022, 4:14 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
given a facility with meals exists
and then when the provider verification happens, this state reduces the responses from the endpoint to the shapes expected