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-12-05.
1 breaking6 new APIs and options23 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initjson-schema-faker 0.630 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 23
Generated contains items now also satisfy the items schema.
Dependencies are now applied to properties added by the minProperties backfill.
Conditional schemas inside and next to allOf now select the then or else branch so generated output satisfies the condition.
Unselected optional properties are backfilled to meet minProperties, avoiding errors when additionalProperties is false.
Replacement values for not type constraints are selected from the schema's own type; excluding number also excludes integer.
Keys generated while filling minProperties now satisfy the propertyNames schema.
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.