1.1.2 • Published 7 years ago

json-schema-simulator v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

JSON Schema Simulator

Build Status codecov dependency

To simplify the problem and meet the demand, the current solution is quite specific to the generation of tmdoc object instead of a complete support of all the json schema specification.

It is simple to use:

const schemas: JSONSchema6[] = [{
  type: 'any'
}, {
  type: 'array'
}, {
  type: 'boolean'
}, {
  type: 'integer'
}, {
  type: 'number'
}, {
  type: 'object'
}, {
  type: 'string'
}, require('./test/schema.json')]

for (const schema of schemas) {
  load(schema, {generationLimit: 100}).then((r) => {
    console.log(schema)
    const rr = [...r] // if no generationLimit is specified, the spread syntax should not be used.
  })
}
1.1.2

7 years ago

1.1.1

7 years ago

1.0.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago