【文件属性】:
文件名称:json-schema-parser:解析 JSON Schema 并解析 `$ref` 字段
文件大小:88KB
文件格式:ZIP
更新时间:2021-05-31 12:40:54
TypeScript
JsonSchemaParser
解析 JSON Schema 并解析$ref字段。
安装
$ npm install json-schema-parser
用法
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 包括jsonschema.d.ts和parser.d.ts 。
执照
JsonSchemaParser 在下获得。
【文件预览】:
json-schema-parser-master
----src()
--------jsonschema.ts(2KB)
--------lib.d.ts(673KB)
--------parser.ts(1KB)
----.babelrc(72B)
----.npmignore(31B)
----spec()
--------parser_spec.js(642B)
--------fixtures()
----.travis.yml(160B)
----tsconfig.json(302B)
----dtsm.json(551B)
----README.md(756B)
----.gitignore(605B)
----index.js(84B)
----package.json(1KB)