Exception: OpenAPIParser::LessThanMinItems
- Inherits:
-
OpenAPIError
- Object
- StandardError
- OpenAPIError
- OpenAPIParser::LessThanMinItems
- Defined in:
- lib/openapi_parser/errors.rb
Instance Method Summary collapse
-
#initialize(value, reference) ⇒ LessThanMinItems
constructor
A new instance of LessThanMinItems.
- #message ⇒ Object
Constructor Details
#initialize(value, reference) ⇒ LessThanMinItems
Returns a new instance of LessThanMinItems.
215 216 217 218 |
# File 'lib/openapi_parser/errors.rb', line 215 def initialize(value, reference) super(reference) @value = value end |
Instance Method Details
#message ⇒ Object
220 221 222 |
# File 'lib/openapi_parser/errors.rb', line 220 def "#{@value} cannot be less than min items in #{@reference}" end |