node-consumer-pact-validation
Version:
A consumer pact generator written for pure nodeJS
29 lines (28 loc) • 656 B
JSON
{
"match": true,
"comment": "Response match with same type",
"expected" : {
"headers": {"Content-Type": "application/json"},
"matchingRules": {
"$.body.alligator.name": {"match": "type"},
"$.body.alligator.feet": {"match": "type"}
},
"body": {
"alligator":{
"name": "Mary",
"feet": 4,
"favouriteColours": ["red","blue"]
}
}
},
"actual": {
"headers": {"Content-Type": "application/json"},
"body": {
"alligator":{
"feet": 5,
"name": "Harry the very hungry alligator with an extra foot",
"favouriteColours": ["red","blue"]
}
}
}
}