A JSON schema validator wrapping tv4 and tv4-formats that loads schemas over HTTP. Version 1.1.0 is stable; release cadence is low. Differentiators include automatic fetching of referenced schemas and a CLI tool. It is a thin wrapper around tv4 for convenience.
npm install json-schema-validatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a validator using the simple shortcut to load a schema over HTTP and validate a JSON object.
Ensure all schema URIs are accessible or use a local file-based schema loader.
Use require() or use a dynamic import wrapper.
Consider migrating to a maintained validator like ajv.
Always check that schemas are loaded via callbacks or promises before calling validate.
Replace request with a modern HTTP client if using the simple method.
Use const Validator = require('json-schema-validator') or configure bundler to handle CommonJS.Install tv4 explicitly: npm install tv4
Ensure fetchSchemas callback has been invoked before calling validate.