Class: JSON::Schema::DependenciesV4Attribute

Inherits:
DependenciesAttribute show all
Defined in:
lib/json-schema/attributes/dependencies.rb

Constant Summary

Constants inherited from Attribute

Attribute::TYPE_CLASS_MAPPINGS

Class Method Summary collapse

Methods inherited from DependenciesAttribute

validate, validate_dependency

Methods inherited from Attribute

build_fragment, data_valid_for_type?, validate, validation_error, validation_errors

Class Method Details

.accept_value?(value) ⇒ Boolean

Returns:

  • (Boolean)

39
40
41
# File 'lib/json-schema/attributes/dependencies.rb', line 39

def self.accept_value?(value)
  value.is_a?(Array) || value.is_a?(Hash)
end