Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Mar 20, 2019
1 parent f093f28 commit 7b7f4bd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ npm i express-middleware-openapi

see [app.ts](test/app.ts) for an example.

```
app.use(
new OpenApiMiddleware({
apiSpecPath: './openapi.yaml',
validate: true, // should be default
enableObjectCoercion: true, // should be the default
}).middleware()
);
```

0 comments on commit 7b7f4bd

Please sign in to comment.