class
Amazonite::ApiGateway::RequestValidator
- Amazonite::ApiGateway::RequestValidator
- Reference
- Object
Overview
A set of validation rules for incoming Method requests.
Included Modules
- JSON::Serializable
Defined in:
api_gateway/request_validator.crConstructors
- .new(pull : JSON::PullParser)
- .new(id : String | Nil = nil, name : String | Nil = nil, validate_request_body : Bool | Nil = nil, validate_request_parameters : Bool | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#id : String | Nil
The identifier of this RequestValidator.
-
#id=(id : String | Nil)
The identifier of this RequestValidator.
-
#name : String | Nil
The name of this RequestValidator
-
#name=(name : String | Nil)
The name of this RequestValidator
- #validate! : Nil
-
#validate_request_body : Bool | Nil
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
-
#validate_request_body=(validate_request_body : Bool | Nil)
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
-
#validate_request_parameters : Bool | Nil
A Boolean flag to indicate whether to validate request parameters (
true) or not (false). -
#validate_request_parameters=(validate_request_parameters : Bool | Nil)
A Boolean flag to indicate whether to validate request parameters (
true) or not (false).
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
A Boolean flag to indicate whether to validate request parameters (true) or not (false).
A Boolean flag to indicate whether to validate request parameters (true) or not (false).