pactflow / swagger-mock-validator

Other
14 stars 4 forks source link

feat: allow user to set additionalProperties or requiredProperties on oas response schemas #1

Closed YOU54F closed 2 years ago

YOU54F commented 2 years ago

Background


Issue raised by Tim Jones on Parent repo - https://bitbucket.org/atlassian/swagger-mock-validator/issues/84/test-incorrectly-passes-when-mock-expects

And noted in the FAQ

Solution


This PR will address it by providing configurability for the users options, to conditionally set either flag.

I have added an example pact file, and swagger url to the readme for examples, demonstrating the challenges discussed with either of the approaches

See the readme for illustrative examples 👍🏾