Recursively filters a JSON document to include only properties defined in a given JSON Schema. Version 2.0.5 is stable but unmaintained. Unlike validators like AJV, this library removes non-schema properties instead of validating. Designed for cases where the schema has fewer keys than the document. Requires Node.js and provides CJS-only exports via require().
npm install uber-json-schema-filterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Filters a document to only include properties defined in a JSON Schema, removing extras like 'secret'.
Define explicit properties in the schema for that object, or accept that the property will be omitted.
Use a validator like AJV after filtering if validation is required.
If your document is smaller than the schema, consider another library.
Use const filter = require('uber-json-schema-filter');Run npm install uber-json-schema-filter
Ensure the schema parameter is an object with type and properties.
No dependency data recorded yet.