Skip to content

About

A simple tool for instantiating JSON Schemas.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

JSON-Schema-Instantiator

A simple tool for instantiating JSON Schemas!
Amended to support anyOf (jmanoto)

Installing

Node.js

npm install git+https://git@github.com/jmanoto/jsck.git

Using

Node.js

var instantiator = require('json-schema-instantiator');

...

var schema = {
    "type": "object",
    "properties": {
        "title": {
            "type": "string",
            "default": "Example"
        }
    }
},  instance = instantiator.instantiate(schema);
    
    // instance === { title: "Example" }

About

A simple tool for instantiating JSON Schemas.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages