Exception: OpenAPIParser::NotOneOf
- Inherits:
-
OpenAPIError
- Object
- StandardError
- OpenAPIError
- OpenAPIParser::NotOneOf
- Defined in:
- lib/openapi_parser/errors.rb
Instance Method Summary collapse
-
#initialize(value, reference) ⇒ NotOneOf
constructor
A new instance of NotOneOf.
- #message ⇒ Object
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
#message ⇒ Object
92 93 94 |
# File 'lib/openapi_parser/errors.rb', line 92 def "#{@value.inspect} isn't one of in #{@reference}" end |