Class: OpenAPIParser::SchemaValidator::UnspecifiedTypeValidator

Inherits:
Base
  • Object
show all
Defined in:
lib/openapi_parser/schema_validator/unspecified_type_validator.rb

Instance Attribute Summary

Attributes inherited from Base

#validatable

Instance Method Summary collapse

Methods inherited from Base

#initialize, #validate_discriminator_schema

Constructor Details

This class inherits a constructor from OpenAPIParser::SchemaValidator::Base

Instance Method Details

#coerce_and_validate(value, _schema, **_keyword_args) ⇒ Object

Parameters:

  • value (Object)


4
5
6
# File 'lib/openapi_parser/schema_validator/unspecified_type_validator.rb', line 4

def coerce_and_validate(value, _schema, **_keyword_args)
  [value, nil]
end