json-schema-parser

0.1.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i json-schema-parser

Weekly Downloads

193

Version

0.1.0

License

MIT

Last publish

Collaborators

  • izumin5210