Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Mar 21, 2019
1 parent b780f66 commit f95cde1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ npm i express-middleware-openapi
see [app.ts](test/app.ts) for an example.

```
new OpenApiMiddleware(app, {
const app = express();
new OpenApiMiddleware({
apiSpecPath: './openapi.yaml',
validateApiDoc: true, // is the the default
validateApiDoc: true, // default
enableObjectCoercion: true, // should be default
}).install();
}).install(app);
```

0 comments on commit f95cde1

Please sign in to comment.