swagger2
Version:
Typescript-based tools for working with Swagger v2.0 documents
13 lines (12 loc) • 535 B
TypeScript
import type { CompiledPath } from './compiler';
export interface ValidationError {
where?: string;
name?: string;
actual: any;
expected: any;
error?: any;
}
export declare function request(compiledPath: CompiledPath | undefined, method: string, query?: any, body?: any, headers?: any, pathParameters?: {
[name: string]: any;
}): ValidationError[] | undefined;
export declare function response(compiledPath: CompiledPath | undefined, method: string, status: number, body?: unknown): ValidationError | undefined;