Skip to content

Commit f1a7e47

Browse files
authored
Update example for Express in README (#142)
Co-authored-by: Pavel <[email protected]>
1 parent 6ba896d commit f1a7e47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ app.get('/pets/:petId', swaggerValidation.validate, (req, res, next) => {
132132
return res.json({ result: 'OK' });
133133
});
134134

135-
app.use((err, req, res) => {
135+
app.use((err, req, res, next) => {
136136
if (err instanceof swaggerValidation.InputValidationError) {
137137
return res.status(400).json({ more_info: JSON.stringify(err.errors) });
138138
}

0 commit comments

Comments
 (0)