ajv-cli icon indicating copy to clipboard operation
ajv-cli copied to clipboard

Support for `--uri-resolver`

Open willfarrell opened this issue 3 years ago • 2 comments

New option that allow the use of fast-uri. https://ajv.js.org/options.html#uriresolver

ajv compile ... --uri-resolver=fast-uri -s schema.json -o schema.js

willfarrell avatar Jun 10 '22 23:06 willfarrell

I assume it won't be in dependencies - it would be just a name of JS file to be passed to require that returns the required interface - is that right?

epoberezkin avatar Jun 11 '22 10:06 epoberezkin

That's what I was imagining. I've updated above with what I imagine it could look like.

willfarrell avatar Jun 11 '22 15:06 willfarrell