Exception: OpenAPIParser::MoreThanMaxProperties

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ MoreThanMaxProperties

Returns a new instance of MoreThanMaxProperties.



175
176
177
178
# File 'lib/openapi_parser/errors.rb', line 175

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

Instance Method Details

#messageObject



180
181
182
# File 'lib/openapi_parser/errors.rb', line 180

def message
  "#{@reference} #{@value.size} is more than maxProperties value"
end