From 9c5ac4a04658a93cb4ef5d0f503a984e73b5578f Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Mon, 14 Oct 2019 11:42:00 -0400 Subject: [PATCH] update example --- example/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/example/app.js b/example/app.js index 1dfd19ab..e6011063 100644 --- a/example/app.js +++ b/example/app.js @@ -45,6 +45,7 @@ app.get('/v1/pets/:id', function(req, res, next) { const id = req.params.id; const r = pets.filter(p => p.id === id); if (id === 99) { + // return a response that does not match the spec return res.json({ bad_format: 'bad format' }); } return r.length > 0