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.



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

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

Instance Method Details

#messageObject



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

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