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.



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

#messageObject



81
82
83
# File 'lib/openapi_parser/errors.rb', line 81

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