Class: JSON::Schema::MaxPropertiesAttribute
- Inherits:
-
MinPropertiesAttribute
- Object
- Attribute
- LimitAttribute
- MinPropertiesAttribute
- JSON::Schema::MaxPropertiesAttribute
- 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 MinPropertiesAttribute
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
131 132 133 |
# File 'lib/json-schema/attributes/limit.rb', line 131 def self.(schema) "had more properties than the allowed #{limit(schema)}" end |
.limit_name ⇒ Object
127 128 129 |
# File 'lib/json-schema/attributes/limit.rb', line 127 def self.limit_name 'maxProperties' end |