Skip to content

Commit

Permalink
doc: add uriResolver (#1896)
Browse files Browse the repository at this point in the history
* doc: add uriResolver

* update link

Co-authored-by: Evgeny Poberezkin <[email protected]>
  • Loading branch information
zekth and epoberezkin authored Feb 24, 2022
1 parent a27f782 commit 6e53e43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const defaultOptions = {
ownProperties: false,
multipleOfPrecision: undefined, // *
messages: true, // false with JTD
uriResolver: undefined,
code: {
// NEW
es5: false,
Expand Down Expand Up @@ -341,6 +342,10 @@ By default `multipleOf` keyword is validated by comparing the result of division

Include human-readable messages in errors. `true` by default. `false` can be passed when messages are generated outside of Ajv code (e.g. with [ajv-i18n](https://github.com/ajv-validator/ajv-i18n)).

### uriResolver

By default `uriResolver` is undefined and relies on the embedded uriResolver [uri-js](https://github.com/garycourt/uri-js). Pass an object that satisfies the interface [UriResolver](https://github.com/ajv-validator/ajv/blob/master/lib/types/index.ts) to be used in replacement. One alternative is [fast-uri](https://github.com/fastify/fast-uri).

### code <Badge text="v7" />

Code generation options:
Expand Down

0 comments on commit 6e53e43

Please sign in to comment.