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.



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 duplicate items"
end