Files
getting-started/pact/pact-node-messages/pacts/node-message-consumer-node-message-provider.json
2018-11-12 23:00:33 +01:00

63 lines
1.2 KiB
JSON

{
"consumer": {
"name": "node-message-consumer"
},
"provider": {
"name": "node-message-provider"
},
"messages": [
{
"description": "a hero created message",
"providerStates": [
],
"contents": {
"id": 42,
"name": "Superman",
"superpower": "flying",
"universe": "DC"
},
"matchingRules": {
"body": {
"$.id": {
"matchers": [
{
"match": "type"
}
]
},
"$.name": {
"matchers": [
{
"match": "type"
}
]
},
"$.superpower": {
"matchers": [
{
"match": "type"
}
]
},
"$.universe": {
"matchers": [
{
"match": "regex",
"regex": "^(DC|Marvel)$"
}
]
}
}
},
"metaData": {
"content-type": "application/json"
}
}
],
"metadata": {
"pactSpecification": {
"version": "3.0.0"
}
}
}