class JSON::Schema::MinPropertiesAttribute

Public Class Methods

acceptable_type() click to toggle source
# File lib/json-schema/attributes/limit.rb, line 109
def self.acceptable_type
  Hash
end
error_message(schema) click to toggle source
# File lib/json-schema/attributes/limit.rb, line 121
def self.error_message(schema)
  "did not contain a minimum number of properties #{limit(schema)}"
end
limit_name() click to toggle source
# File lib/json-schema/attributes/limit.rb, line 117
def self.limit_name
  'minProperties'
end
value(data) click to toggle source
# File lib/json-schema/attributes/limit.rb, line 113
def self.value(data)
  data.size
end