class JSON::Schema::NumericLimitAttribute

Public Class Methods

acceptable_type() click to toggle source
# File lib/json-schema/attributes/limit.rb, line 137
def self.acceptable_type
  Numeric
end
error_message(schema) click to toggle source
# File lib/json-schema/attributes/limit.rb, line 141
def self.error_message(schema)
  exclusivity = exclusive?(schema) ? 'exclusively' : 'inclusively'
  format("did not have a %s value of %s, %s", limit_name, limit(schema), exclusivity)
end