Class: OpenAPIParser::SchemaValidator::ResponseValidateOptions
- Inherits:
-
Object
- Object
- OpenAPIParser::SchemaValidator::ResponseValidateOptions
- Defined in:
- lib/openapi_parser/schema_validators/options.rb
Overview
response body validation option
Instance Attribute Summary collapse
-
#strict ⇒ Boolean
readonly
Validate by strict (when not exist definition, raise error).
-
#validate_header ⇒ Object
readonly
Returns the value of attribute validate_header.
Instance Method Summary collapse
-
#initialize(strict: false, validate_header: true) ⇒ ResponseValidateOptions
constructor
A new instance of ResponseValidateOptions.
Constructor Details
#initialize(strict: false, validate_header: true) ⇒ ResponseValidateOptions
Returns a new instance of ResponseValidateOptions.
24 25 26 27 |
# File 'lib/openapi_parser/schema_validators/options.rb', line 24 def initialize(strict: false, validate_header: true) @strict = strict @validate_header = validate_header end |
Instance Attribute Details
#strict ⇒ Boolean (readonly)
Returns validate by strict (when not exist definition, raise error).
22 23 24 |
# File 'lib/openapi_parser/schema_validators/options.rb', line 22 def strict @strict end |
#validate_header ⇒ Object (readonly)
Returns the value of attribute validate_header.
22 23 24 |
# File 'lib/openapi_parser/schema_validators/options.rb', line 22 def validate_header @validate_header end |