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 22, 2019
1 parent 0b86d87 commit 578f810
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,20 @@ Determines whether the validator should validate requests.

- `true` (**default**) - validate requests.
- `false` - do not validate requests.
- `{ ... }` - validate requests with options

**allowUnknownQueryParameters:**

- `true` - enables unknown/undeclared query parameters to pass validation
- `false` - (**default**) fail validation if an unknown query parameter is present

For example:

```javascript
validateRequests: {
allowUnknownQueryParameters: true
}
```

### ▪️ validateResponses (optional)

Expand All @@ -361,7 +375,7 @@ Determines whether the validator should validate responses. Also accepts respons
- `false` (**default**) - do not validate responses
- `{ ... }` - validate responses with options

**removeAdditional**
**removeAdditional:**

- `"failing"` - additional properties that fail schema validation are automatically removed from the response.

Expand Down

0 comments on commit 578f810

Please sign in to comment.