Class: JSON::Schema::MinLengthAttribute
- Inherits:
-
LengthLimitAttribute
- Object
- Attribute
- LimitAttribute
- LengthLimitAttribute
- JSON::Schema::MinLengthAttribute
- Defined in:
- lib/json-schema/attributes/limits/min_length.rb
Constant Summary
Constants inherited from Attribute
Attribute::TYPE_CLASS_MAPPINGS
Class Method Summary collapse
Methods inherited from LengthLimitAttribute
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
10 11 12 |
# File 'lib/json-schema/attributes/limits/min_length.rb', line 10 def self.(schema) "was not of a minimum string length of #{limit(schema)}" end |
.limit_name ⇒ Object
6 7 8 |
# File 'lib/json-schema/attributes/limits/min_length.rb', line 6 def self.limit_name 'minLength' end |