Class: JSON::Schema::MaxItemsAttribute
- Inherits:
-
MinItemsAttribute
- Object
- Attribute
- LimitAttribute
- MinItemsAttribute
- JSON::Schema::MaxItemsAttribute
- 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 MinItemsAttribute
Methods inherited from LimitAttribute
acceptable_type, exclusive?, invalid?, limit, validate, value
Methods inherited from Attribute
build_fragment, data_valid_for_type?, type_of_data, validate, validation_error, validation_errors
Class Method Details
.error_message(schema) ⇒ Object
103 104 105 |
# File 'lib/json-schema/attributes/limit.rb', line 103 def self.(schema) "had more items than the allowed #{limit(schema)}" end |
.limit_name ⇒ Object
99 100 101 |
# File 'lib/json-schema/attributes/limit.rb', line 99 def self.limit_name 'maxItems' end |