Class: JSON::Schema::MinimumAttribute

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

Direct Known Subclasses

MinimumInclusiveAttribute

Constant Summary

Constants inherited from Attribute

Attribute::TYPE_CLASS_MAPPINGS

Class Method Summary collapse

Methods inherited from NumericLimitAttribute

acceptable_type, error_message

Methods inherited from LimitAttribute

acceptable_type, error_message, invalid?, limit, 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)

168
169
170
# File 'lib/json-schema/attributes/limit.rb', line 168

def self.exclusive?(schema)
  schema['exclusiveMinimum']
end

.limit_nameObject


164
165
166
# File 'lib/json-schema/attributes/limit.rb', line 164

def self.limit_name
  'minimum'
end