Menu
Amazon API Gateway
Developer Guide

x-amazon-apigateway-request-validators.requestValidator Object

Specifies the validation rules of a request validator as part of the x-amazon-apigateway-request-validators Object map definition.

Properties

Property Name Type Description

validateRequestBody

Boolean

Specifies whether to validate the request body (true) or not (false).

validateRequestParameters

Boolean

Specifies whether to validate the required request parameters (true) or not (false).

x-amazon-apigateway-request-validators.requestValidator Example

The following example shows a parameter-only request validator:

Copy
"params-only": { "validateRequestBody" : false, "validateRequestParameters" : true }