Add breakdown of issues detected

Issue #39 closed
Ben Sayers created an issue

In addition to the number of errors and warnings detected provide a breakdown of the types of issues detected.

For example

Pact file "test/e2e/fixtures/broken-consumer-pact.json" is not compatible with swagger file "test/e2e/fixtures/provider-spec.json"

6 error(s)
Request Body: 1
Request Path or Method: 2
Response Body: 1
Response Status Code: 2

3 warning(s)
Array Not Supported: 1
Response Header: 1
Unused Swagger Definition: 1

Comments (2)

  1. Ben Sayers reporter

    Here is a real example of the output:

    23 error(s)
        spv.request.path-or-method.unknown: 2
        spv.request.body.incompatible: 1
        spv.response.status.unknown: 1
        spv.response.body.incompatible: 1
        spv.request.header.incompatible: 13
        spv.request.query.incompatible: 1
        spv.request.accept.incompatible: 1
        spv.request.content-type.incompatible: 1
        spv.response.content-type.incompatible: 1
        spv.request.authorization.missing: 1
    0 warning(s)
    
  2. Log in to comment