@cfworker/json-schema
Version:
A JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, 2019-09, and 2020-12.
13 lines (12 loc) • 517 B
TypeScript
import { Schema } from './types.js';
export declare const schemaKeyword: Record<string, boolean>;
export declare const schemaArrayKeyword: Record<string, boolean>;
export declare const schemaMapKeyword: Record<string, boolean>;
export declare const ignoredKeyword: Record<string, boolean>;
export declare let initialBaseURI: URL;
export declare function dereference(
schema: Schema | boolean,
lookup?: Record<string, Schema | boolean>,
baseURI?: URL,
basePointer?: string
): Record<string, Schema | boolean>;