Skip to content

jmanoto/JSON-Schema-Instantiator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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://[email protected]/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

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%