Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Oct 11, 2019
1 parent 4a6b0af commit 5dcff66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ app.use((err, req, res, next) => {
});
```

_**Note:** Ensure express is configured with all relevant body parsers. See an [example](#example-express-api-server)_
_**Note:** Ensure express is configured with all relevant body parsers. body parser middleware functions must be specified prior to any validated routes. See an [example](#example-express-api-server)_

## Advanced Usage

Expand Down Expand Up @@ -123,6 +123,7 @@ const app = express();
const OpenApiValidator = require('express-openapi-validator').OpenApiValidator;

// 2. Set up body parsers for the request body types you expect
// Must be specified prior to endpoints in 4.
app.use(bodyParser.json());
app.use(bodyParser.text());
app.use(bodyParser.urlencoded());
Expand Down

0 comments on commit 5dcff66

Please sign in to comment.