node-consumer-pact-validation
Version:
A consumer pact generator written for pure nodeJS
30 lines (29 loc) • 506 B
JSON
{
"match": false,
"comment": "Empty array",
"expected" : {
"method": "POST",
"path": "/",
"query": "",
"headers": {"Content-Type": "application/json"},
"matchingRules": {
"$.body.animals": {"min": 1}
},
"body": {
"animals": [
{
"name" : "Fred"
}
]
}
},
"actual": {
"method": "POST",
"path": "/",
"query": "",
"headers": {"Content-Type": "application/json"},
"body": {
"animals": []
}
}
}