Exception: OpenAPIParser::NotExistDiscriminatorPropertyName
- Inherits:
-
OpenAPIError
- Object
- StandardError
- OpenAPIError
- OpenAPIParser::NotExistDiscriminatorPropertyName
- Defined in:
- lib/openapi_parser/errors.rb
Instance Method Summary collapse
-
#initialize(key, value, reference) ⇒ NotExistDiscriminatorPropertyName
constructor
A new instance of NotExistDiscriminatorPropertyName.
- #message ⇒ Object
Constructor Details
#initialize(key, value, reference) ⇒ NotExistDiscriminatorPropertyName
Returns a new instance of NotExistDiscriminatorPropertyName.
75 76 77 78 79 |
# File 'lib/openapi_parser/errors.rb', line 75 def initialize(key, value, reference) super(reference) @key = key @value = value end |
Instance Method Details
#message ⇒ Object
81 82 83 |
# File 'lib/openapi_parser/errors.rb', line 81 def "discriminator propertyName #{@key} does not exist in value #{@value.inspect} in #{@reference}" end |