Exception: OpenAPIParser::NotExistRequiredKey
- Inherits:
-
OpenAPIError
- Object
- StandardError
- OpenAPIError
- OpenAPIParser::NotExistRequiredKey
- Defined in:
- lib/openapi_parser/errors.rb
Instance Method Summary collapse
-
#initialize(keys, reference) ⇒ NotExistRequiredKey
constructor
A new instance of NotExistRequiredKey.
- #message ⇒ Object
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
#message ⇒ Object
47 48 49 |
# File 'lib/openapi_parser/errors.rb', line 47 def "#{@reference} missing required parameters: #{@keys.join(", ")}" end |