{ "consumer": { "name": "Message Consumer" }, "provider": { "name": "Message Provider" }, "interactions": [ { "description": null, "provider_state": "User subscribed", "request": { "method": "MESSAGE", "path": "" }, "response": { "body": { "first_name": { "json_class": "Pact::SomethingLike", "contents": "John" }, "last_name": { "json_class": "Pact::SomethingLike", "contents": "Smith" }, "subscribed": true } } }, { "description": null, "provider_state": "User unsubscribed", "request": { "method": "MESSAGE", "path": "" }, "response": { "body": { "first_name": { "json_class": "Pact::SomethingLike", "contents": "John" }, "last_name": { "json_class": "Pact::SomethingLike", "contents": "Smith" }, "subscribed": false } } } ], "metadata": { "pactSpecificationVersion": "1.0.0" } }