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.



36
37
38
39
# File 'lib/openapi_parser/errors.rb', line 36

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

Instance Method Details

#messageObject



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

def message
  "required parameters #{@keys.join(",")} not exist in #{@reference}"
end