Checks if a JSON Schema is a subset of another, useful for verifying compatibility between output and input schemas in data pipelines. Current stable version: 1.1.27. Release cadence: infrequent. Key differentiator: uses ajv for validation and json-schema-merge-allof for schema merging. Ships TypeScript types. Supports optional partial matching.
npm install is-json-schema-subsetNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: checks if a simple object schema is a subset of a larger schema.
Use await or .then() to get the boolean result.
Pass true as third argument to allow subset to only partially cover required properties.
Ensure you have your own CI process; the package itself works.
Change to: import isJsonSchemaSubset from 'is-json-schema-subset'
Install with npm install is-json-schema-subset, and ensure package.json has "type": "module" or use .mjs extension.