import { Schema } from "../swagger/swaggerTypes"; import { SchemaValidationErrorCode, TrafficValidationErrorCode } from "../util/errorDefinitions"; import { Severity } from "../util/severity"; import { SourceLocation } from "../util/validationError"; export interface SchemaValidateContext { isResponse?: boolean; includeErrors?: TrafficValidationErrorCode[]; statusCode?: string; } export interface SchemaValidateIssue { code: SchemaValidationErrorCode; severity: Severity; message: string; jsonPathsInPayload: string[]; schemaPath: string; source: SourceLocation; params?: any; } export type SchemaValidateFunction = (ctx: SchemaValidateContext, data: any) => SchemaValidateIssue[]; export interface SchemaValidator { compile(schema: Schema): SchemaValidateFunction; compileAsync(schema: Schema): Promise; } export interface SchemaValidatorOption { isArmCall?: boolean; } export declare const getIncludeErrorsMap: (includeErrors?: string[]) => Set | undefined; //# sourceMappingURL=schemaValidator.d.ts.map