@redocly/respect-core
Version:
API testing framework core
18 lines • 801 B
TypeScript
import { type OperationMethod, type TestContext } from '../../types.js';
import type { Oas3Operation, Oas3Responses } from '@redocly/openapi-core';
export type DescriptionSource = {
operationId?: string;
operationPath?: string;
};
export type OperationDetails = {
method: OperationMethod;
path: string;
descriptionName: string;
servers?: Array<{
url: string;
}>;
responses: Oas3Responses;
};
export declare function getOperationFromDescription(path: string, method: string, descriptionPaths: Record<string, any>): Oas3Operation | undefined;
export declare function getOperationFromDescriptionBySource(source: DescriptionSource, ctx: TestContext): (OperationDetails & Record<string, any>) | undefined;
//# sourceMappingURL=get-operation-from-description.d.ts.map