I recently wrote the article Handling API validation with OpenAPI (Swagger) documents in NodeJS, which went into how to pass on the work of input v...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, for point 2 of what your working on, is this error in operation?
As you can simply validate your output against your schema to ensure the output expectancies are as required. Anything foreign you set it to throw.
I have a working example somewhere I can get for you, that you should be able to integrate into your existing process.
Really nice, have been thinking about the same thing recently, specifically in the context of consumer driven contract testing.
There's something you've not covered though: all the write operations, i.e. POST, PUT, PATCH, and maybe even DELETE.
Valid point, I may ammended this or follow it up with covering that and different response codes also