JSON Schema Reference Resolver
Takes a $ref string and a root object, and returns the referenced value.
Works in browser & in node (file system refs ignored in browser)
Getting Started
npm install @json-schema-tools/reference-resolver
const referenceResolver = require("@json-schema-tools/reference-resolver").default;
referenceResolver("#/properties/foo", { properties: { foo: 123 } });
referenceResolver("https://foo.com/", {});
referenceResolver("../my-object.json", {});
Contributing
How to contribute, build and release are outlined in CONTRIBUTING.md, BUILDING.md and RELEASING.md respectively. Commits in this repository follow the CONVENTIONAL_COMMITS.md specification.