Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio authored Oct 12, 2019
1 parent f510a03 commit 1b0c3e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ new OpenApiValidator(options).install(app);
- `Promise.reject(Error('optional 'message')`
- `Promise.reject(false)`

Note: status is always 401, unless option i. is used
Note: error status `401` is returned, unless option `i.` above is used

**Some examples:**

Expand All @@ -172,8 +172,9 @@ new OpenApiValidator(options).install(app);


In order to grant authz, the handler function **must** either:
- `return true`
- return a promise which resolves to `true`

- `return true`
- return a promise which resolves to `true`

**Some examples**

Expand Down

0 comments on commit 1b0c3e8

Please sign in to comment.