Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-schema-ref-parser

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-ref-parser

Parse, Resolve, and Dereference JSON Schema $ref pointers

  • 1.0.0-alpha.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
decreased by-5.22%
Maintainers
1
Weekly downloads
 
Created

What is json-schema-ref-parser?

The json-schema-ref-parser npm package is a tool that can parse JSON Schema files and dereference $ref pointers. This allows you to combine multiple separate JSON Schema files into one resolved schema, validate JSON documents against schemas, and manipulate JSON Schemas programmatically.

What are json-schema-ref-parser's main functionalities?

Dereferencing $ref pointers

This feature allows you to take a JSON Schema that contains $ref pointers to other files or URLs and resolve them into a single JSON Schema object. This is useful for simplifying and flattening schemas that are spread across multiple files.

{"$ref": "http://example.com/my-schema.json"}

Bundle schemas into a single file

This feature lets you take a JSON Schema with $ref pointers to other files in your project and bundle them all into a single JSON Schema file. This can be useful for distribution or for loading a schema from a single file in a browser or other environments where multiple files are not convenient.

{"$ref": "definitions.json#/address"}

Parse JSON Schema to a JavaScript object

This feature allows you to parse a JSON Schema from a string, file, or URL into a JavaScript object. This can be useful for manipulating the schema programmatically or for using it in conjunction with other tools that operate on JavaScript objects.

{"type": "object", "properties": {"name": {"type": "string"}}}

Other packages similar to json-schema-ref-parser

Keywords

FAQs

Package last updated on 13 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc