Skip to content

Commit

Permalink
Document new Ajv options introduced in #133
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevon committed Nov 3, 2021
1 parent 823ecec commit 10c24ad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,15 @@ const options = {
strict: true
}
}
```

Alternatively, you can provide a custom Ajv instance using the `ajvInstance` option. This can be useful if you
need to configure Ajv outside of what the constructor parameters allow.

```ts
const options = {
[SchemaType.JSON]: {
ajvInstance: new Ajv()
}
}
```

0 comments on commit 10c24ad

Please sign in to comment.