unmock-core
Version:
[][npmjs] [](https://circleci.com/gh/unmock/unmock-js) [](h
19 lines • 748 B
TypeScript
import { ISerializedRequest } from "../interfaces";
import { OpenAPIObject } from "./interfaces";
export declare class OASMatcher {
static normalizeRequestPathToServerPath(reqPath: string, serverPathPrefix: string): string;
private static buildRegexpForPaths;
private readonly schema;
private readonly endpointToRegexMapping;
constructor({ schema }: {
schema: OpenAPIObject;
});
matchToOperationObject(sreq: ISerializedRequest): import("loas3/dist/generated/full").Operation | undefined;
findEndpoint(reqPath: string): {
schemaEndpoint: string;
normalizedEndpoint: string;
} | undefined;
private findMatchingPathItem;
private matchesServer;
}
//# sourceMappingURL=matcher.d.ts.map