bobbake4
7 years agoNew Contributor
Swagger Hub Mock API Bug
The auto generated mock server does not handle 64 bit integers correctly. I am using OpenAPI 3 and setting an integer example value with format 'int64'. The example value displays as it should but the mock server response has converted my example value, which is a timestamp in milliseconds, down to a 32 bit integer breaking the timestamp value.
Here is my Yaml definition for the date property:
date: type: integer format: int64 example: 1516042231144
I wasn't sure where to post a bug so if this is not the correct place I apologize.