schema-finder
Version:
A simple React component for viewing and exploring a JSONSchema
15 lines • 709 B
TypeScript
import { JSONSchema7 } from "json-schema";
import { DerefBuilder, DerefOptions } from "./internal";
export declare const buildDeref: DerefBuilder;
/**
* Resolves $ref
* @param options Additional options
* @param idDict Dictionary of schemas with $id
* @param rootSchema Fallback schema so use if ref doesn't specify an id
* or an address or remote address resolution is not enabled.
* @param ref [JSON pointer] to referenced schema
*
* [JSON pointer]: https://datatracker.ietf.org/doc/html/rfc6901
*/
export declare function deref(options: DerefOptions, idDict: Record<string, JSONSchema7>, rootSchema: JSONSchema7, ref?: string): Promise<[unknown, Error?]>;
//# sourceMappingURL=dereference.d.ts.map