Incompatible response from pact is not recongnized

Issue #81 wontfix
Christian Maus created an issue

swagger-mock-validator fails to recognize that the response outlined in the pact file is incompatible with the openapi schema.

I debugged this a bit and the problem seems to be in validate-parsed-mock-response-body.ts

The required properties are removed before validating the response body, which makes no sense to me.

I have attached two minimal files in order to replicate the issue.

swagger-mock-validator schema.json pact.json
0 error(s)
0 warning(s)

Comments (2)

  1. Log in to comment