Exception: OpenAPIParser::NotUniqueItems

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ NotUniqueItems

Returns a new instance of NotUniqueItems.



299
300
301
302
# File 'lib/openapi_parser/errors.rb', line 299

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

Instance Method Details

#messageObject



304
305
306
# File 'lib/openapi_parser/errors.rb', line 304

def message
  "#{@reference} #{@value.inspect} contains duplicate items"
end