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 |
---|---|---|
|
x-amazon-apigateway-request-validators.requestValidator object |
Specifies the validation rules consisting of the named validator. For example:
To apply this validator to a specific method, reference the validator name ( |
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.
{ "swagger": "2.0", ... "x-amazon-apigateway-request-validators" : { "basic" : { "validateRequestBody" : true, "validateRequestParameters" : true }, "params-only" : { "validateRequestBody" : false, "validateRequestParameters" : true } }, ... }