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