json-schema-empty

JSON →
library 1.1.1 ·javascript
verified Jun 7, 2026

Generates minimal, deterministic data from a JSON Schema. Version 1.1.1 is current. The library fills values that fit the structure of the schema (e.g., empty strings, zeros, empty arrays) rather than random data. It supports JSON Schema draft-04, including $ref, oneOf, anyOf, allOf, and enum. Unlike data generators like json-schema-faker, it prioritizes simplicity and determinism for use cases like form defaults or test fixtures.