UNPKG

somod-http-extension

Version:

SOMOD middleware to intercept and validate Lambda event for AWS APIGateway

20 lines (19 loc) 691 B
import { Extension, IContext } from "somod"; /** * Validates the schema of all `serverless/functions/<function_name>.http.yaml` * */ export declare const validateHttpYamlFilesSchema: (context: IContext) => Promise<void>; /** * Checks if the `.http.yaml` exists for functions that have somod-http-extension middleware * * | YAML | Middleware | Result | * | -----| -----------| ---- | * | No | No | Valid | * | No | Yes | Error | * | Yes | No | Warning | * | Yes | Yes | Valid | * */ export declare const validateHttpYamlFilesForMiddlewares: (context: IContext) => Promise<void>; export declare const prebuild: Extension["prebuild"];