From f95cde1053aa29249282b7337d2c357ab33e3d34 Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Wed, 20 Mar 2019 22:19:54 -0400 Subject: [PATCH] update readme --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2273c72b..089a9f93 100644 --- a/README.md +++ b/README.md @@ -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); ```