Class: JSON::Schema::MaxLengthAttribute
- Inherits:
-
MinLengthAttribute
- Object
- Attribute
- LimitAttribute
- MinLengthAttribute
- JSON::Schema::MaxLengthAttribute
- 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 MinLengthAttribute
Methods inherited from LimitAttribute
acceptable_type, exclusive?, invalid?, limit, validate, value
Methods inherited from Attribute
build_fragment, data_valid_for_type?, validate, validation_error, validation_errors
Class Method Details
.error_message(schema) ⇒ Object
75 76 77 |
# File 'lib/json-schema/attributes/limit.rb', line 75 def self.(schema) "was not of a maximum string length of #{limit(schema)}" end |
.limit_name ⇒ Object
71 72 73 |
# File 'lib/json-schema/attributes/limit.rb', line 71 def self.limit_name 'maxLength' end |