class OpenAPIParser::SchemaValidator::ResponseValidateOptions

response body validation option

Attributes

strict[R]

@!attribute [r] strict

@return [Boolean] validate by strict (when not exist definition, raise error)
validate_header[R]

@!attribute [r] strict

@return [Boolean] validate by strict (when not exist definition, raise error)

Public Class Methods

new(strict: false, validate_header: true) click to toggle source
# File lib/openapi_parser/schema_validators/options.rb, line 24
def initialize(strict: false, validate_header: true)
  @strict = strict
  @validate_header = validate_header
end