openapi-enforcer-middleware icon indicating copy to clipboard operation
openapi-enforcer-middleware copied to clipboard

Clarify the mocking documentation for v2

Open yoshutch opened this issue 3 years ago • 0 comments

I got confused with the mocking documentation and thought that all I needed to instantiate fallback-monitoring was to add the x-mock-implemented flag on each path I wanted mocked.

Maybe include a code snippet that shows how to add the mock to the middleware:

app.use(middleware.mock())

yoshutch avatar Jan 12 '22 18:01 yoshutch