Class: OpenAPIParser::SchemaValidator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi_parser/schema_validators/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(validatable, coerce_value) ⇒ Base

Returns a new instance of Base.



4
5
6
7
# File 'lib/openapi_parser/schema_validators/base.rb', line 4

def initialize(validatable, coerce_value)
  @validatable = validatable
  @coerce_value = coerce_value
end

Instance Attribute Details

#validatableOpenAPIParser::SchemaValidator::Validatable (readonly)



11
12
13
# File 'lib/openapi_parser/schema_validators/base.rb', line 11

def validatable
  @validatable
end

Instance Method Details

#coerce_and_validate(_value, _schema) ⇒ Object

need override

Parameters:



17
18
19
# File 'lib/openapi_parser/schema_validators/base.rb', line 17

def coerce_and_validate(_value, _schema)
  raise 'need implement'
end