Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

RequestValidator

import type { RequestValidator } from "https://aws-api.deno.dev/v0.3/services/apigateway.ts?docs=full";

A set of validation rules for incoming "Method" requests.

In OpenAPI, a "RequestValidator" of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.

See also: Enable Basic Request Validation in API Gateway

interface RequestValidator {
id?: string | null;
name?: string | null;
validateRequestBody?: boolean | null;
validateRequestParameters?: boolean | null;
}

§Properties

§
id?: string | null
[src]

The identifier of this "RequestValidator".

§
name?: string | null
[src]

The name of this "RequestValidator"

§
validateRequestBody?: boolean | null
[src]

A Boolean flag to indicate whether to validate a request body according to the configured "Model" schema.

§
validateRequestParameters?: boolean | null
[src]

A Boolean flag to indicate whether to validate request parameters (true) or not (false).