pactflow / swagger-mock-validator

Other
13 stars 4 forks source link

feat: filter requests by type to support v4 #7

Closed Inksprout closed 2 years ago

Inksprout commented 2 years ago

This PR introduces support for the Pact V4 specification. Specifically this will allow pact interactions with "type": "Synchronous/HTTP" to be validated against the OAS spec, and no other features of v4 should cause the validation to break.

The main functionality change is to filter out interactions with a type other than "Synchronous/HTTP" as other types are not supported in BDC flow.

I have added some end to end tests for v3 and v4 pact files. If any issues with compatibility that I've missed arise this should make it easier to reproduce and fix.