unstale

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 init

@unstale/cli 0.3.1 on npm

json-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.

    0.6.2release notes

New APIs and options 6

  • Adds a synchronous generator-creation API.

    0.6.3release notes

  • Adds support for the dependentRequired keyword.

    0.6.3release notes

  • Adds support for the dependentSchemas keyword.

    0.6.3release notes

  • Adds a synchronous generation API.

    0.6.3release notes

  • Custom keyword callbacks now receive GenerateContext as the third define() argument.

    0.6.1release notes

  • Added support for outputTransform with generated output JSON pointer paths.

    0.6.1release notes

Fixes and other changes 23

  • Generated contains items now also satisfy the items schema.

    0.6.4release notes

  • Dependencies are now applied to properties added by the minProperties backfill.

    0.6.4release notes

  • Conditional schemas inside and next to allOf now select the then or else branch so generated output satisfies the condition.

    0.6.4release notes

  • Unselected optional properties are backfilled to meet minProperties, avoiding errors when additionalProperties is false.

    0.6.4release notes

  • Replacement values for not type constraints are selected from the schema's own type; excluding number also excludes integer.

    0.6.4release notes

  • Keys generated while filling minProperties now satisfy the propertyNames schema.

    0.6.4release notes

  • Isolates autoIncrement counters by schema path.

    0.6.3release notes

  • Uses trampolining for recursive schema walks to avoid stack overflow on deep schemas.

    0.6.3release notes

  • Fixes scoped $defs resolution.

    0.6.3release notes

  • Avoids double generation when a property appears in both required and properties.

    0.6.3release notes

  • Allows extensions to proceed into subschemas.

    0.6.3release notes

  • Allows refResolver in generateSync(); it throws only if refResolver returns a Promise.

    0.6.3release notes

  • Fixes handling of quoted JSONPath keys, including bracket-quoted keys.

    0.6.3release notes

  • Fixes recursive descent handling in JSONPath.

    0.6.3release notes

  • Registers nested local definitions during schema walking.

    0.6.3release notes

  • Applies optional property filtering to root examples and default values.

    0.6.3release notes

  • Prevents unhandled promise rejections at sync-mode async boundaries.

    0.6.3release notes

  • Local $ref values pointing to arbitrary JSON pointer paths now resolve against the root schema instead of throwing Unresolved $ref.

    0.6.2release notes

  • Fixed nested allOf merging so all nested branches are preserved.

    0.6.1release notes

  • Fixed autoIncrement sequences across array items.

    0.6.1release notes

  • Added compatibility handling for ignoreProperties.

    0.6.1release notes

  • Added compatibility handling for requiredOnly.

    0.6.1release notes

  • Restored useDefaultValue precedence over enum.

    0.6.1release notes