Hazem Borham
12/06/2022, 12:33 AMwillRespondWith: {
status: 200,
headers: {
"Content-Type": "application/json; charset=utf-8",
},
body: {
id: 1,
name: string("Billy"),
address: like({
street: "123 Smith St",
suburb: "Smithsville",
postcode: 7777,
}),
},
}
and
willRespondWith: {
status: 200,
headers: {
"Content-Type": "application/json; charset=utf-8",
},
body: {
id: 1,
name: string("Billy"),
address: {
street: like("123 Smith St"),
suburb: like("Smithsville"),
postcode: like(7777),
},
},
}
and what would the generated matchRules look like for v3 spec?Hazem Borham
12/06/2022, 12:40 AMbody: like({
pageSize: 20,
pageToken: '',
filter: {
providerId: '',
type: equal('FILTER_TYPE_VISIT_SUMMARIES'),
},
}),
then the generated match rules look like
"matchingRules": {
"body": {
"$": {
"combine": "AND",
"matchers": [
{
"match": "type"
}
]
},
"$.filter.type": {
"combine": "AND",
"matchers": [
{
"match": "equality"
}
]
}
},Hazem Borham
12/06/2022, 12:42 AM"$" recursively check each attribute?Matt (pactflow.io / pact-js / pact-go)
Hazem Borham
12/06/2022, 1:12 AM