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.



47
48
49
50
# File 'lib/openapi_parser/errors.rb', line 47

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

Instance Method Details

#messageObject



52
53
54
# File 'lib/openapi_parser/errors.rb', line 52

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