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.
81 82 83 84 |
# File 'lib/openapi_parser/errors.rb', line 81 def initialize(value, reference) super(reference) @value = value end |
Instance Method Details
#message ⇒ Object
86 87 88 |
# File 'lib/openapi_parser/errors.rb', line 86 def "#{@value} isn't one of in #{@reference}" end |