Exception: OpenAPIParser::NotAnyOf

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ NotAnyOf

Returns a new instance of NotAnyOf.



98
99
100
101
# File 'lib/openapi_parser/errors.rb', line 98

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

Instance Method Details

#messageObject



103
104
105
# File 'lib/openapi_parser/errors.rb', line 103

def message
  "#{@value.inspect} isn't any of in #{@reference}"
end