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.



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

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

Instance Method Details

#messageObject



58
59
60
# File 'lib/openapi_parser/errors.rb', line 58

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