Exception: OpenAPIParser::NotExistPropertyDefinition

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

Instance Method Summary collapse

Constructor Details

#initialize(keys, reference) ⇒ NotExistPropertyDefinition

Returns a new instance of NotExistPropertyDefinition.



47
48
49
50
# File 'lib/openapi_parser/errors.rb', line 47

def initialize(keys, reference)
  super(reference)
  @keys = keys
end

Instance Method Details

#messageObject



52
53
54
# File 'lib/openapi_parser/errors.rb', line 52

def message
  "#{@reference} does not define properties: #{@keys.join(", ")}"
end