Amazon API Gateway REST API Reference

RequestValidator

A set of validation rules for incoming Method requests.


Relation Description Method Templated
self

A relation that refers to the current resource.

GET No
requestvalidator:update

Updates a RequestValidator for a specified RestApi.

PATCH No
requestvalidator:delete

Deletes a RequestValidator from a given RestApi.

DELETE No


Properties

{
  "id" : "String",
  "name" : "String",
  "validateRequestBody" : "Boolean",
  "validateRequestParameters" : "Boolean"
}

  • id
  • The identifier of this RequestValidator.

  • name
  • The name of this RequestValidator

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

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

Remarks

In Swagger, 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