Pactflow prints the following error message, in case the response body doesn't match the expected response body:
Response body is incompatible with the response body schema in the spec file: should be object
For me it wasn't clear WHAT/which part of the response "should be (a) object".
After figuring out, that the response body was a JSON-String, instead of a JSON-Object, in the pact the following error message would have been more helpful for me:
"Response body is incompatible with the response body schema in the spec file: The response body should be a JSON object, but is as JSON string"
Pactflow prints the following error message, in case the response body doesn't match the expected response body:
For me it wasn't clear WHAT/which part of the response "should be (a) object".
After figuring out, that the response body was a JSON-String, instead of a JSON-Object, in the pact the following error message would have been more helpful for me:
For more details please have a look at this Pactflow slack thread.