Generates random instances from a JSON schema

npm install json-schema-random-instance
2 downloads in the last week
27 downloads in the last month

JSON Schema Random Instance

This is a node library for generating random valid instances of JSON Schemas (draft 04).


var Generator = require('json-schema-random-instance');
var generator = new Generator(schema);
var instance = generator.generate();

Not Yet Supported

  • uniqueItems
  • $ref
  • patternProperties
  • additionalProperties
  • dependencies
  • anyOf
  • not
npm loves you