resolve.d.ts 656 B

123456789101112
  1. import type { AnySchema, AnySchemaObject } from "../types";
  2. import type Ajv from "../ajv";
  3. import URI = require("uri-js");
  4. export declare type LocalRefs = {
  5. [Ref in string]?: AnySchemaObject;
  6. };
  7. export declare function inlineRef(schema: AnySchema, limit?: boolean | number): boolean;
  8. export declare function getFullPath(id?: string, normalize?: boolean): string;
  9. export declare function _getFullPath(p: URI.URIComponents): string;
  10. export declare function normalizeId(id: string | undefined): string;
  11. export declare function resolveUrl(baseId: string, id: string): string;
  12. export declare function getSchemaRefs(this: Ajv, schema: AnySchema): LocalRefs;