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.



92
93
94
95
# File 'lib/openapi_parser/errors.rb', line 92

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

Instance Method Details

#messageObject



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

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