Exception: OpenAPIParser::MoreThanMaxItems

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ MoreThanMaxItems

Returns a new instance of MoreThanMaxItems.



277
278
279
280
# File 'lib/openapi_parser/errors.rb', line 277

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

Instance Method Details

#messageObject



282
283
284
# File 'lib/openapi_parser/errors.rb', line 282

def message
  "#{@reference} #{@value.inspect} contains more than max items"
end