Class: JSON::Schema::DependenciesV4Attribute
- Inherits:
-
DependenciesAttribute
- Object
- Attribute
- DependenciesAttribute
- JSON::Schema::DependenciesV4Attribute
- Defined in:
- lib/json-schema/attributes/dependencies_v4.rb
Constant Summary
Constants inherited from Attribute
Attribute::TYPE_CLASS_MAPPINGS
Class Method Summary collapse
Methods inherited from DependenciesAttribute
Methods inherited from Attribute
build_fragment, data_valid_for_type?, type_of_data, validate, validation_error, validation_errors
Class Method Details
.accept_value?(value) ⇒ Boolean
6 7 8 |
# File 'lib/json-schema/attributes/dependencies_v4.rb', line 6 def self.accept_value?(value) value.is_a?(Array) || value.is_a?(Hash) end |