UNPKG

somod-http-extension

Version:

SOMOD middleware to intercept and validate Lambda event for AWS APIGateway

17 lines (16 loc) 420 B
import { JSONSchema7 } from "json-schema"; export type Routes = Record<string, Record<string, { parameters?: [ { in: "path" | "query" | "header"; name: string; schema: JSONSchema7; required: boolean; } ]; body?: { parser?: "text" | "json" | "formdata"; schema: JSONSchema7; }; }>>; export declare const schema: JSONSchema7;