v1.request.body.matches.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pact-specification-test Show documentation
Show all versions of pact-specification-test Show documentation
Pact Specification
==================
The [Pact Specification](https://github.com/bethesque/pact_specification) is a robust set of tests on the pact matching
code aimed at ensuring pact library implementations across different languages have the same matching behaviour.
Without adhering to these specifications there would be room for subtle issues to arise between consumers and providers
using different libraries.
{
"match": true,
"comment": "Requests match",
"expected" : {
"method": "POST",
"path": "/",
"query": "",
"headers": {},
"body": {
"alligator":{
"name": "Mary",
"feet": 4,
"favouriteColours": ["red","blue"]
}
}
},
"actual": {
"method": "POST",
"path": "/",
"query": "",
"headers": {},
"body": {
"alligator":{
"feet": 4,
"name": "Mary",
"favouriteColours": ["red","blue"]
}
}
}
}