Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Dec 2, 2019
1 parent d168084 commit 547dc9a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,18 +360,14 @@ new OpenApiValidator({

#### Synchronous

_Note syncrhonous mode requires the installation of the [`deasync`](https://github.com/abbr/deasync) module. Some users have experienced issues using deasync with some versions of node_
_Note syncrhonous mode makes use of the [`deasync`](https://github.com/abbr/deasync) module. Some users have experienced issues using deasync with some versions of node_

**Q:** What does it mean to use the validator 'synchronously'?

**A:** The validator's initial parse and `$ref` resolution of the OpenAPI 3 spec are executed synchronously. Use `installSync(app)` instead of `install(app)` to setup the validator in a blocking manner.

**Install**

```shell
npm i express-openapi-validator deasync
```

1. Install the openapi validator

```javascript
Expand Down

0 comments on commit 547dc9a

Please sign in to comment.