0.1.0 • Published 9 years ago

json-schema-parser v0.1.0

Weekly downloads
218
License
MIT
Repository
github
Last release
9 years ago

JsonSchemaParser

Parse JSON Schema and resolve $ref fields.

Build Status npm version

Installation

$ npm install json-schema-parser

Usage

var json = require("./spec/fixtures/schema.json");
var parser = require("json-schema-parser");

var schema = parser.parse(json);

console.log(schema);   // print the schema that is resolved $ref fields

JsonSchemaParser includes jsonschema.d.ts and parser.d.ts.

LICENSE

JsonSchemaParser is licensed under MIT-license.