In certain scenarios the validator from the `jsonschema` package doesn't work in the browser out of the box, without additionally installing a polyfill (https://github.com/tdegrunt/jsonschema/issues/367), because it only supports Node.js (https://github.com/tdegrunt/jsonschema/pull/383#issuecomment-1658897565). This is an issue that I encountered in a project using Vite. It also appears this library is the slowest one available - see https://github.com/ebdrup/json-schema-benchmark. Without doing much research, my initial recommendation would be to switch to https://github.com/ajv-validator/ajv.
In certain scenarios the validator from the
jsonschemapackage doesn't work in the browser out of the box, without additionally installing a polyfill (tdegrunt/jsonschema#367), because it only supports Node.js (tdegrunt/jsonschema#383 (comment)). This is an issue that I encountered in a project using Vite.It also appears this library is the slowest one available - see https://github.com/ebdrup/json-schema-benchmark.
Without doing much research, my initial recommendation would be to switch to https://github.com/ajv-validator/ajv.