open-api-mocker
open-api-mocker copied to clipboard
Attempt to find response example based on request body
In an effort to offer a solution to #66 this PR attempts to match the request body to a requestBody example and use the name of that example to find a corresponding response example. This could be used as an alternative to supplying a Prefer header.
I'll admit that I'm not great with js and appreciate any feedback you have on this PR. Thanks in advance!
@jormaechea do you have any feedback on this? Would love to use this feature, or an alternative if you have something in mind?