From e1872f80ce9bfe7e9a56b11d5f50aa42077a251e Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Sat, 12 Feb 2022 23:19:37 +0100 Subject: [PATCH 1/2] doc: add uriResolver --- docs/options.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/options.md b/docs/options.md index c1a2ef152..12982fea8 100644 --- a/docs/options.md +++ b/docs/options.md @@ -62,6 +62,7 @@ const defaultOptions = { ownProperties: false, multipleOfPrecision: undefined, // * messages: true, // false with JTD + uriResolver: undefined, code: { // NEW es5: false, @@ -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/zekth/ajv/blob/master/lib/types/index.ts) to be used in replacement. One alternative is [fast-uri](https://github.com/fastify/fast-uri). + ### code Code generation options: From bc6a131d8d77e226196c694aea7ce36b7ade02b7 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Sat, 12 Feb 2022 22:58:26 +0000 Subject: [PATCH 2/2] update link --- docs/options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/options.md b/docs/options.md index 12982fea8..c4a303680 100644 --- a/docs/options.md +++ b/docs/options.md @@ -344,7 +344,7 @@ Include human-readable messages in errors. `true` by default. `false` can be pas ### 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/zekth/ajv/blob/master/lib/types/index.ts) to be used in replacement. One alternative is [fast-uri](https://github.com/fastify/fast-uri). +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