Exception: OpenAPIParser::InvalidDateFormat

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

Instance Method Summary collapse

Constructor Details

#initialize(value, reference) ⇒ InvalidDateFormat

Returns a new instance of InvalidDateFormat.



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

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

Instance Method Details

#messageObject



204
205
206
# File 'lib/openapi_parser/errors.rb', line 204

def message
  "#{@reference} Value: #{@value.inspect} is not conformant with date format"
end