Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

x-amazon-apigateway-request-validators object

Focus mode
x-amazon-apigateway-request-validators object - Amazon API Gateway
This page has not been translated into your language. Request translation

Defines the supported request validators for the containing API as a map between a validator name and the associated request validation rules. This extension applies to a REST API.

Property name Type Description

request_validator_name

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

Specifies the validation rules consisting of the named validator. For example:

"basic" : { "validateRequestBody" : true, "validateRequestParameters" : true },

To apply this validator to a specific method, reference the validator name (basic) as the value of the x-amazon-apigateway-request-validator property property.

x-amazon-apigateway-request-validators example

The following example shows a set of request validators for an API as a map between a validator name and the associated request validation rules.

OpenAPI 2.0
{ "swagger": "2.0", ... "x-amazon-apigateway-request-validators" : { "basic" : { "validateRequestBody" : true, "validateRequestParameters" : true }, "params-only" : { "validateRequestBody" : false, "validateRequestParameters" : true } }, ... }
{ "swagger": "2.0", ... "x-amazon-apigateway-request-validators" : { "basic" : { "validateRequestBody" : true, "validateRequestParameters" : true }, "params-only" : { "validateRequestBody" : false, "validateRequestParameters" : true } }, ... }
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.