NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #4764 most downloaded on npm
Fast, lightweight JSON Schema validator for Node.js and browsers — full support for draft-04, draft-06, draft-07, draft-2019-09, and draft-2020-12 (latest)
Last release today
17 Sep 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 58 of the last 60 stable releases
7 versions withdrawn
withdrawn after publishing
13 years old
164 releases · first in 2013
version bump, rebuild distribution files
OBJECT_ADDITIONAL_PROPERTIES errors are now reported individually (ungrouped) for clearer messages
OBJECT_ADDITIONAL_PROPERTIES errors are now reported individually (ungrouped) for clearer messagesasync format validator now returns correct path
One column per quarter.
refresh compiled distribution files
modernize source files (ES6 exports, JSHint ES6 mode)
index.d.ts)Nothing published for this version
include schema title in error objects when available
title in error objects when availablemove type check together with other validators so it can be rewired
type check together with other validators so it can be rewiredpass validateOptions through to format validators
validateOptions through to format validatorsvalidator to 10.0.0report enum case mismatch as a separate error code
fix skipping of async format validators
add validationOptions parameter to setRemoteReference() for per-schema validation settings
validationOptions parameter to setRemoteReference() for per-schema validation settingssetRemoteReference()validator to 9.0.0move package name to the top of README
use Map for reference cache when available for improved performance
Map for reference cache when available for improved performancestrictMode documentationupgrade validator dependency to latest version
validator dependency to latest versiondo not duplicate same schema of different instance in cache
remove request as a runtime dependency (schema downloading is now user-provided)
request as a runtime dependency (schema downloading is now user-provided)add support for custom validators via customValidator option
customValidator optionReport.getPath() to return both string and array formatslodash.get and validator dependencies### Bug Fixes * add tests for issue #151
add schemaId property to error objects
handle incorrect id keyword gracefully
id keyword gracefully (#146)npm testNothing published for this version
version bump, rebuild distribution files
more descriptive error for invalid subschema
more descriptive error for invalid subschema
version bump, rebuild distribution files
validate against subschema via JSON Pointer path
support for ignoring unknown formats via ignoreUnknownFormats option
ignoreUnknownFormats optionimprove escaping of forward slashes in JSON Pointer paths
fix issue #127 — incorrect schema caching behavior
### Bug Fixes * fix #125
getMissingReferences now resolves recursively
do not add UNRESOLVABLE_REFERENCE when REMOTE_NOT_VALID is already present
UNRESOLVABLE_REFERENCE when REMOTE_NOT_VALID is already presentadd getRegisteredFormats() helper method
getRegisteredFormats() helper methodpedanticCheck optionadd pedanticCheck option for strict schema best-practice checks
pedanticCheck option for strict schema best-practice checksdefault and enum values correctly (#110)return correct exit code for Node.js 0.10 in CLI
set process.exitCode = 1 on failed CLI validation
process.exitCode = 1 on failed CLI validationimplement setSchemaReader() for pluggable remote schema loading
setSchemaReader() for pluggable remote schema loading### Bug Fixes * fix #106
fire callback in async mode when validation fails during compilation step
support circular references in deepClone — drop dependency on external clone library
deepClone — drop dependency on external clone library$refadd input validation for public API methods
### Miscellaneous Chores * version bump
bundle default JSON Schema meta-schemas with z-schema
validator dependency versionwhen validating oneOf, return only one error per branch instead of all nested errors
oneOf, return only one error per branch instead of all nested errorsuse validator library for IPv6 validation
validator library for IPv6 validationvalidator versionread $ref from local filesystem when using CLI
$ref from local filesystem when using CLI (#97)Nothing published for this version
use validator library for strict URI and IPv4 validation
validator library for strict URI and IPv4 validation (#96)noTypeless mode, type is not required when enum is definedadd forceMinItems, forceMaxItems, and forceMinLength strict-mode options
forceMinItems, forceMaxItems, and forceMinLength strict-mode optionsforceMaxLength no longer throws when pattern is definednoEmptyStrings — do not add minLength to strings with format defined
noEmptyStrings — do not add minLength to strings with format definednoEmptyStrings — do not add minLength for enums
noEmptyStrings — do not add minLength for enumsupdate README browser usage example
fix display of URI in error paths
fix Unicode code point tests from JSON Schema Test Suite
### Bug Fixes * fix #88 ### Documentation * add CLI usage to README * add Coveralls badge
### Bug Fixes * fix #84 * fix #85 * fix typo
### Bug Fixes * fix #83
fix report object error handling
### Bug Fixes * fix circular dependencies
Your coding agent can read these notes before it upgrades. Set up the MCP server →