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.



49
50
51
52
# File 'lib/openapi_parser/errors.rb', line 49

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

Instance Method Details

#messageObject



54
55
56
# File 'lib/openapi_parser/errors.rb', line 54

def message
  "#{@value} isn't include enum in #{@reference}"
end