Class: JSON::Schema::MinimumInclusiveAttribute

Inherits:
MinimumAttribute show all
Defined in:
lib/json-schema/attributes/limit.rb

Constant Summary

Constants inherited from Attribute

Attribute::TYPE_CLASS_MAPPINGS

Class Method Summary collapse

Methods inherited from MinimumAttribute

limit_name

Methods inherited from NumericLimitAttribute

acceptable_type, error_message

Methods inherited from LimitAttribute

acceptable_type, error_message, invalid?, limit, limit_name, validate, value

Methods inherited from Attribute

build_fragment, data_valid_for_type?, validate, validation_error, validation_errors

Class Method Details

.exclusive?(schema) ⇒ Boolean

Returns:

  • (Boolean)

174
175
176
# File 'lib/json-schema/attributes/limit.rb', line 174

def self.exclusive?(schema)
  schema['minimumCanEqual'] == false
end