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.



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

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

Instance Method Details

#messageObject



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

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