node-consumer-pact-validation
Version:
A consumer pact generator written for pure nodeJS
26 lines • 529 B
JSON
{
"match": false,
"comment": "Favourite colours expected to be strings found a number",
"expected" : {
"method": "POST",
"path": "/",
"query": "",
"headers": {"Content-Type": "application/json"},
"body": {
"alligator":{
"favouriteNumbers": ["1","2","3"]
}
}
},
"actual": {
"method": "POST",
"path": "/",
"query": "",
"headers": {"Content-Type": "application/json"},
"body": {
"alligator":{
"favouriteNumbers": ["1",2,"3"]
}
}
}
}