Exception: OpenAPIParser::NotEnumInclude

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ NotEnumInclude

Returns a new instance of NotEnumInclude.



109
110
111
112
# File 'lib/openapi_parser/errors.rb', line 109

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

Instance Method Details

#messageObject



114
115
116
# File 'lib/openapi_parser/errors.rb', line 114

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