Exception: OpenAPIParser::LessThanMinLength

Inherits:
OpenAPIError
  • Object
show all
Defined in:
lib/openapi_parser/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ LessThanMinLength

Returns a new instance of LessThanMinLength.



216
217
218
219
# File 'lib/openapi_parser/errors.rb', line 216

def initialize(value, reference)
  super(reference)
  @value = value
end

Instance Method Details

#messageObject



221
222
223
# File 'lib/openapi_parser/errors.rb', line 221

def message
  "#{@reference} #{@value} is shorter than min length"
end