Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Nov 27, 2019
1 parent 23e5c09 commit 6f3ac88
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ new OpenApiValidator(options).install({
apiSpec: './openapi.yaml',
validateRequests: true,
validateResponses: true,
ignorePaths: /.*\/pets$/
unknownFormats: ['phone-number', 'uuid'],
multerOpts: { ... },
securityHandlers: {
Expand Down Expand Up @@ -389,6 +390,16 @@ Determines whether the validator should validate responses. Also accepts respons
}
```

### ▪️ ignorePaths (optional)

Defines a regular expression that determines whether a path(s) should be ignored. Any path which matches the regular expression will not be validated.

The following ignores any path that ends in `/pets`

```
ignorePaths: /.*\/pets$/
```


### ▪️ unknownFormats (optional)

Expand Down

0 comments on commit 6f3ac88

Please sign in to comment.