npm / json-schema-faker
json-schema-faker
What changed in json-schema-faker 0.6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
1 breaking6 new APIs and options17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjson-schema-faker 0.624 changes
Breaking changes 1
A bare $ref value of #/ now throws Unresolved $ref instead of silently self-referencing the root schema.
New APIs and options 6
Adds a synchronous generator-creation API.
Adds support for the dependentRequired keyword.
Adds support for the dependentSchemas keyword.
Adds a synchronous generation API.
Custom keyword callbacks now receive GenerateContext as the third define() argument.
Added support for outputTransform with generated output JSON pointer paths.
Fixes and other changes 17
Isolates autoIncrement counters by schema path.
Uses trampolining for recursive schema walks to avoid stack overflow on deep schemas.
Fixes scoped $defs resolution.
Avoids double generation when a property appears in both required and properties.
Allows extensions to proceed into subschemas.
Allows refResolver in generateSync(); it throws only if refResolver returns a Promise.
Fixes handling of quoted JSONPath keys, including bracket-quoted keys.
Fixes recursive descent handling in JSONPath.
Registers nested local definitions during schema walking.
Applies optional property filtering to root examples and default values.
Prevents unhandled promise rejections at sync-mode async boundaries.
Local $ref values pointing to arbitrary JSON pointer paths now resolve against the root schema instead of throwing Unresolved $ref.
Fixed nested allOf merging so all nested branches are preserved.
Fixed autoIncrement sequences across array items.
Added compatibility handling for ignoreProperties.
Added compatibility handling for requiredOnly.
Restored useDefaultValue precedence over enum.