A lightweight JSON schema validator utility for Node.js, version 1.0.1. Provides a simple validate() function that returns isValid and errors. Minimal dependencies, synchronous API. Suitable for basic schema validation, but lacks advanced features like format validation or remote schema support found in libraries like Ajv. Use with caution for complex schemas.
npm install json-schema-utilNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Validates a simple object against a JSON schema and logs validity and errors.
Consider Ajv for full JSON Schema draft support.
Always check error object keys in your code; do not rely on undocumented structure.
Migrate to actively maintained validator like Ajv.
Implement custom format validators or switch to Ajv with format plugin.
Use named import: const { validate } = require('json-schema-util');Run npm install json-schema-util
Check result.errors !== null before iterating.
No dependency data recorded yet.