Incompatible response from pact is not recongnized
Issue #81
wontfix
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)
-
-
- changed status to wontfix
- Log in to comment
@{557058:1869629c-44a1-41a9-b842-23ef1120ee2e} this behaviour is by design. You can read more about the thinking behind this here:
https://bitbucket.org/atlassian/swagger-mock-validator/issues/78/response-parser-removes-required
If after reading that you still think this is a bug please share more details around your use case and reasoning and we will see what we can do.