Class: JSON::Schema::PropertiesV4Attribute
- Inherits:
-
PropertiesAttribute
- Object
- Attribute
- PropertiesAttribute
- JSON::Schema::PropertiesV4Attribute
- Defined in:
- lib/json-schema/attributes/properties_v4.rb
Constant Summary
Constants inherited from Attribute
Attribute::TYPE_CLASS_MAPPINGS
Class Method Summary collapse
-
.required?(schema, options) ⇒ Boolean
draft4 relies on its own RequiredAttribute validation at a higher level, rather than as an attribute of individual properties.
Methods inherited from PropertiesAttribute
Methods inherited from Attribute
build_fragment, data_valid_for_type?, type_of_data, validate, validation_error, validation_errors
Class Method Details
.required?(schema, options) ⇒ Boolean
draft4 relies on its own RequiredAttribute validation at a higher level, rather than as an attribute of individual properties.
8 9 10 |
# File 'lib/json-schema/attributes/properties_v4.rb', line 8 def self.required?(schema, ) [:allPropertiesRequired] == true end |