pact-mock_service icon indicating copy to clipboard operation
pact-mock_service copied to clipboard

Feature request: json response from /interactions/verification

Open TimothyJones opened this issue 5 years ago • 0 comments

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).

TimothyJones avatar May 14 '20 05:05 TimothyJones