x-amazon-apigateway-request-validators.requestValidator object - Amazon API Gateway

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:

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