json-schema-bundler
v0.1.11
Published
Lightweight JSON Schema reference parser
Downloads
6
Readme
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
Node
./test/index-http.js and ./test/index-fs.js