node-consumer-pact-validation
Version:
A consumer pact generator written for pure nodeJS
30 lines • 439 B
JSON
{
"match": true,
"comment": "array with type matcher",
"expected": {
"headers": {},
"body" : {
"myDates": [
10
]
},
"matchingRules" : {
"$.body.myDates" : {
"match": "type"
},
"$.body.myDates[*]" : {
"match": "type"
}
}
},
"actual": {
"headers": {},
"body": {
"myDates": [
20,
5,
1910
]
}
}
}