node-consumer-pact-validation
Version:
A consumer pact generator written for pure nodeJS
39 lines (38 loc) • 846 B
JSON
{
"match": true,
"comment": "top level array matches",
"expected": {
"headers": {"Content-Type": "application/json"},
"body": [
{
"dob": "06/10/2015",
"name": "Rogger the Dogger",
"id": 1014753708,
"timestamp": "2015-06-10T20:41:37"
},
{
"dob": "06/10/2015",
"name": "Cat in the Hat",
"id": 8858030303,
"timestamp": "2015-06-10T20:41:37"
}
]
},
"actual": {
"headers": {"Content-Type": "application/json"},
"body": [
{
"dob": "06/10/2015",
"name": "Rogger the Dogger",
"id": 1014753708,
"timestamp": "2015-06-10T20:41:37"
},
{
"dob": "06/10/2015",
"name": "Cat in the Hat",
"id": 8858030303,
"timestamp": "2015-06-10T20:41:37"
}
]
}
}