Exception: OpenAPIParser::NotExistRequiredKey

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

Instance Method Summary collapse

Constructor Details

#initialize(keys, reference) ⇒ NotExistRequiredKey

Returns a new instance of NotExistRequiredKey.



42
43
44
45
# File 'lib/openapi_parser/errors.rb', line 42

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

Instance Method Details

#messageObject



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

def message
  "#{@reference} missing required parameters: #{@keys.join(", ")}"
end