Exception: OpenAPIParser::NotExistDiscriminatorPropertyName

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

Instance Method Summary collapse

Constructor Details

#initialize(key, value, reference) ⇒ NotExistDiscriminatorPropertyName

Returns a new instance of NotExistDiscriminatorPropertyName.



69
70
71
72
73
# File 'lib/openapi_parser/errors.rb', line 69

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

Instance Method Details

#messageObject



75
76
77
# File 'lib/openapi_parser/errors.rb', line 75

def message
  "discriminator propertyName #{@key} does not exist in value #{@value} in #{@reference}"
end