Exception: OpenAPIParser::NotOneOf

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ NotOneOf

Returns a new instance of NotOneOf.



81
82
83
84
# File 'lib/openapi_parser/errors.rb', line 81

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

Instance Method Details

#messageObject



86
87
88
# File 'lib/openapi_parser/errors.rb', line 86

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