John Carlson
John Carlson
I'm not sure if my email made it here or not. I use: To get bundle. I get that Ajv2020 is not a constructor. The error is thrown in a...
Found this: https://ajv.js.org/guide/environments.html#browsers
I’m glad you have a good perspective on it. I think I tried to create a global exports object before loading Ajv in the browser. While getting 2020-12 working in...
Compared to stuff running under ant or python, Ajv8 really shines for performance! We have nearly 4000+ examples we regression test. Fast runs means we can do more of them!...
I also noticed the better error handling with nested oneOfs. That will help my users tremendously! Thank you for your diligent efforts! John On Tue, Nov 9, 2021 at 4:12...
I will check out main branch of ajv and work on creating a browserify bundle for Ajv2020 to deploy with my app. That seems like the right approach. If I...
I made good progress using Ajv from the web, but I'm now stuck at uri formats: Uncaught Error: unknown format "uri" ignored in schema at path "#/properties/%40xsd%3AnoNamespaceSchemaLocation" unknownFormat https://localhost:3000/node/ajv2020.bundle.js:5295 validateFormat...
I was trying: ``` addFormats(ajv, [ "uri", "uri-reference" ]) ``` but that doesn't work, fairly obviously.
This solved the problem with add uri and uri-reference to formats. I don't quite know how i found it. It's quite prized at this point, maybe! addFormats(ajv, {mode: "full", formats:...
I think browserify works best with node.js code. I've tried the others...too complex! I've been experimenting a bit with this: ``` #!/bin/bash find node_modules/ajv node_modules/ajv-formats node_modules/ajv-i18n -name "*.js" | sort...