Exception: OpenAPIParser::LessThanMinItems

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ LessThanMinItems

Returns a new instance of LessThanMinItems.



288
289
290
291
# File 'lib/openapi_parser/errors.rb', line 288

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

Instance Method Details

#messageObject



293
294
295
# File 'lib/openapi_parser/errors.rb', line 293

def message
  "#{@reference} #{@value.inspect} contains fewer than min items"
end