jsen (JSON Sentinel) is a JSON Schema validator built for speed using dynamic code generation for V8 optimization. It supports JSON-Schema draft 4, remote and external schemas, custom formats and error messages, default value gathering, and greedy validation. The current stable version is 0.6.6 with low release cadence (last update 2019). It differentiates itself with performance benchmarks showing it faster than alternatives like z-schema, jsck, themis, and others. However, it lacks modern JSON Schema drafts (draft-06/07/2019-09), TypeScript types, and is not actively maintained.
npm install jsenNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Validates an object against a JSON Schema using jsen, showing success and failure with error details.
Consider switching to actively maintained validators like Ajv or jsonschema.
Ensure your schema conforms to draft 4, or use a validator that supports newer drafts.
Use a JSON Schema metaschema or a separate validation step to ensure your schema is correct.
If used in browser with strict CSP, evaluate if eval is allowed or choose another validator.
Replace 'new jsen(schema)' with 'jsen(schema)'.
Ensure the schema argument is a valid JSON Schema object, e.g., { type: 'string' }.Validate your schema against JSON Schema metaschema or check keyword definitions.
No dependency data recorded yet.