0.0.4 • Published 11 years ago
json-schema-random v0.0.4
JSON Schema generator
Given a JSON Schema (draft 04), provide a random valid instance.
Disclaimer
This is an choppy piece of software, that is in need of some care and affection.
TODO
- format
- uniqueItems
- $ref
- patternProperties
- dependencies
- allOf
- anyOf
- oneOf
- not
Install & Use
npm install json-schema-random # Install
# Return a generated JSON instance to stdout of the JSON_SCHEMA_FILE
json-schema-random JSON_SCHEMA_FILE
# Or, in your source code
generate = require 'json-schema-random'
generate {type: 'number'}
License
Apache 2.0