You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/options.md
+5
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ const defaultOptions = {
62
62
ownProperties:false,
63
63
multipleOfPrecision:undefined, // *
64
64
messages:true, // false with JTD
65
+
uriResolver:undefined,
65
66
code: {
66
67
// NEW
67
68
es5:false,
@@ -341,6 +342,10 @@ By default `multipleOf` keyword is validated by comparing the result of division
341
342
342
343
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)).
343
344
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).
0 commit comments