@microsoft.azure/openapi-validator-core
Version:
Azure OpenAPI Validator
15 lines (14 loc) • 1 kB
TypeScript
import { SwaggerInventory } from "./swaggerInventory";
import { ISwaggerInventory, OpenApiTypes, JsonPath } from "./types";
export declare function followReference(doc: any, schema: any, inventory?: ISwaggerInventory): any;
export declare function isUriAbsolute(url: string): boolean;
export declare const normalizePath: (path: string) => string;
export declare const parseJsonRef: (ref: string) => string[];
export declare function traverse(obj: unknown, path: string[], visited: Set<any>, options: any, visitor: (obj: any, path: string[], context: any) => boolean): void;
export declare function isExample(path: string): boolean;
export declare function getOpenapiType(type: string): OpenApiTypes;
export declare const defaultFileSystem: {
read: (uri: string) => Promise<string>;
};
export declare function getRange(inventory: SwaggerInventory, specPath: string, path: JsonPath): import("./types").Range | undefined;
export declare function convertJsonPath(doc: any, paths: string[]): JsonPath;