Exception: OpenAPIParser::MoreThanMaxLength

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ MoreThanMaxLength

Returns a new instance of MoreThanMaxLength.



193
194
195
196
# File 'lib/openapi_parser/errors.rb', line 193

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

Instance Method Details

#messageObject



198
199
200
# File 'lib/openapi_parser/errors.rb', line 198

def message
  "#{@value} cannot be more than max length in #{@reference}"
end