JSON Schema Faker (jsf) uses JSON Schema alongside fake data generators (Faker.js, Chance.js, Casual) to produce consistent and meaningful fake data. The current stable series is v0.5.x release candidate (rc12), with full async support via jsf.resolve() for handling local/remote $ref references. It supports JSON Schema draft-04 and provides a sync API via jsf() for simpler use cases. Key differentiators: built-in integration with multiple fake data providers, custom format support, and a rich set of options for controlling randomness.
npm install json-schema-faker-bbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows both async (jsf.resolve) and sync (jsf) generation of fake data from a JSON Schema with faker and format providers.
Replace jsf.sync(schema) with jsf.resolve(schema).then(...).
Update to async API (jsf.resolve) and check option names.
Use import jsf from 'json-schema-faker' instead of const jsf = require('json-schema-faker').Use jsf.resolve() when your schema contains $ref pointers.
Check the package name and use 'json-schema-faker' if possible.
Use jsf.resolve() instead: jsf.resolve(schema).then(result => ...)
Install json-schema-ref-parser: npm install json-schema-ref-parser --save
Use import jsf from 'json-schema-faker' (ESM) or const jsf = require('json-schema-faker') (CJS). Ensure the package is installed.