UNPKG

710 BTypeScriptView Raw
1import SchemaId from './schemaId';
2import { Schema, JsonSchemaObject, SchemaType } from './type';
3export interface NormalizedSchema extends Schema {
4 content: JsonSchemaObject;
5}
6export declare function getSubSchema(rootSchema: Schema, pointer: string, id?: SchemaId): Schema;
7export declare function getId(type: SchemaType, content: any): string | undefined;
8export declare function setId(type: SchemaType, content: any, id: string): void;
9export declare function searchAllSubSchema(schema: Schema, onFoundSchema: (subSchema: Schema) => void, onFoundReference: (refId: SchemaId) => void): void;
10export declare function selectSchemaType(content: any): {
11 type: SchemaType;
12 openApiVersion?: 2 | 3;
13};