Skip to content

Commit 6e53e43

Browse files
zekthepoberezkin
andauthoredFeb 24, 2022
doc: add uriResolver (#1896)
* doc: add uriResolver * update link Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
1 parent a27f782 commit 6e53e43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎docs/options.md

+5
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const defaultOptions = {
6262
ownProperties: false,
6363
multipleOfPrecision: undefined, // *
6464
messages: true, // false with JTD
65+
uriResolver: undefined,
6566
code: {
6667
// NEW
6768
es5: false,
@@ -341,6 +342,10 @@ By default `multipleOf` keyword is validated by comparing the result of division
341342

342343
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)).
343344

345+
### uriResolver
346+
347+
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).
348+
344349
### code <Badge text="v7" />
345350

346351
Code generation options:

0 commit comments

Comments
 (0)
Please sign in to comment.