darosh / json-schema-bundler

Lightweight JSON Schema reference parser

Home Page:https://darosh.github.io/json-schema-bundler/test/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON Schema Bundler

Lightweight JSON Schema reference parser. See demo online.

Features

  • Bundles external JSON Schema references into internal references
  • Dereferences internal references
  • Works with JSON and YAML format
  • Bundles external text file formats as well
  • Follows specification: All other properties in a "$ref" object MUST be ignored.
  • By default requires axios and yamljs but can be replaced by alternatives via injection
  • Promise API
  • Runs in browser and server
  • HTTP and file system on server
  • Loading progress report
  • Internal file cache available (for offline PWAs)
  • Small 8 KB footprint

Usage

Disclaimer: Work in progress!

Browser

./test/index.html

Node

./test/index-http.js and ./test/index-fs.js

Alternatives

See ./test/benchmark.html.

About

Lightweight JSON Schema reference parser

https://darosh.github.io/json-schema-bundler/test/

License:MIT License


Languages

Language:JavaScript 49.7%Language:HTML 27.0%Language:TypeScript 23.3%