A CLI and library for detecting breaking changes between two versions of a JSON Schema. v0.4.2 (latest), released occasionally. It checks schema files or objects for removed nodes, replaced nodes, and new required nodes. Offers options to allow new oneOf/anyOf items, new enum values, and reordering as backward-compatible. Ships TypeScript types. Differentiates by focusing on schema backward compatibility specifically, with a simple CLI interface.
npm install json-schema-diff-validatorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use validateSchemaFiles and validateSchemaCompatibility for file and object validation, including error handling.
Use additional schema validation tools to check for other backward-compatibility rules.
Wrap CLI in try/catch in shell scripts; use the library programmatically to handle errors gracefully.
Use the package as a library to pass options object.
Use the correctly named exports: validateSchemaFiles, validateSchemaCompatibility.
Ensure both schemas have the same properties; if removal is intentional, note it as breaking.
Use correct import: import { validateSchemaFiles } from 'json-schema-diff-validator' or const { validateSchemaFiles } = require('json-schema-diff-validator').Run npm install json-schema-diff-validator
No dependency data recorded yet.