Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Oct 14, 2019
1 parent f1a5628 commit 9c5ac4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c5ac4a

Please sign in to comment.