class JSON::Schema::MinItemsAttribute
Public Class Methods
acceptable_type()
click to toggle source
# File lib/json-schema/attributes/limit.rb, line 81 def self.acceptable_type Array end
error_message(schema)
click to toggle source
# File lib/json-schema/attributes/limit.rb, line 93 def self.error_message(schema) "did not contain a minimum number of items #{limit(schema)}" end
limit_name()
click to toggle source
# File lib/json-schema/attributes/limit.rb, line 89 def self.limit_name 'minItems' end
value(data)
click to toggle source
# File lib/json-schema/attributes/limit.rb, line 85 def self.value(data) data.length end