pactflow / swagger-mock-validator

Other
13 stars 4 forks source link

feat: handle more varieties of json #25

Closed vwong closed 1 year ago

vwong commented 1 year ago

This builds upon https://github.com/pactflow/swagger-mock-validator/pull/22 and supports more content-negotiation.

I've removed the logging, because I now think it is unnecessary, and added more complexity that doesn't even make sense anymore.

Once this goes into production, some previously passing validations may now fail because we incorrectly skipped validation before.

Have a look at the new specs, you can see the content-negotiation happening.