@redocly/respect-core
Version:
API testing framework core
21 lines • 1.11 kB
TypeScript
import type { RuntimeExpressionContext, TestContext } from '../../types.js';
import type { LoggerInterface } from '@redocly/openapi-core';
export interface ParsedParameters {
queryParams: Record<string, string>;
pathParams: Record<string, string | number>;
headerParams: Record<string, string>;
}
export declare function getValueFromContext({ value, ctx, logger, }: {
value: any;
ctx: TestContext | RuntimeExpressionContext;
logger: LoggerInterface;
}): any;
export declare function replaceFakerVariablesInString(input: string, ctx: TestContext | RuntimeExpressionContext, logger: LoggerInterface): any;
export declare function getFakeData({ pointer, ctx, logger, }: {
pointer: string;
ctx: TestContext | RuntimeExpressionContext;
logger: LoggerInterface;
}): any;
export declare function parseJson(objectToResolve: any, ctx: TestContext | RuntimeExpressionContext, logger: LoggerInterface): any;
export declare function resolvePath(path?: string, pathParams?: Record<string, string | number | boolean>): string | undefined;
//# sourceMappingURL=get-value-from-context.d.ts.map