pact-foundation / pact-mock_service

Provides a mock service for use with Pact
https://pact.io
MIT License
72 stars 68 forks source link

Feature request: json response from /interactions/verification #123

Open TimothyJones opened 4 years ago

TimothyJones commented 4 years ago

In pact-js, I'd like to be able to programatically query the verification of an interaction (especially when it is a failure) so that we can avoid the need to go to the logs, and can also do things like print out nice coloured diffs for different test frameworks.

At the moment, the endpoint returns a string that pact-js prints. Is it possible to get the option to return json instead (ideally includes all the diff information that is in the log file).