@microsoft.azure/openapi-validator-core
Version:
Azure OpenAPI Validator
18 lines (17 loc) • 739 B
TypeScript
import { OpenapiDocument } from "./document";
import { ISwaggerInventory, IFileSystem } from "./types";
export declare class SwaggerInventory implements ISwaggerInventory {
private fileSystem;
private inventory;
private referenceCache;
private allDocs;
private docRecords;
constructor(fileSystem?: IFileSystem);
getSingleDocument(specPath: string): any;
getDocumentContent(specPath: string): string | undefined;
getInternalDocument(specPath: string): OpenapiDocument | undefined;
referencesOf(specPath: string): Record<string, any>;
getDocuments(docPath?: string): Record<string, any> | any;
loadDocument(specPath: string): Promise<any>;
cacheDocument(specPath: string): Promise<any>;
}