You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handle datetimes with more than millisec precision (#24)
OpenAPI spec seems to [suggest](https://swagger.io/docs/specification/data-models/data-types/) that the format should be [RFC3339](https://www.rfc-editor.org/rfc/rfc3339#section-5.6). But we do encounter APIs that send out date-time data with millisecond or nanosecond precision date-time.
The default date time packages in Julia (TimeZones.jl & Dates) do not support parsing sub-millisecond formats. It seems okay (since the specifications mention only rfc3339) to discard some of the precision while parsing such strings.So until there is a good way to handle it, in this PR we change the date-time parsing to discard some precision and not error out with such data. Also added more date-time related tests.
0 commit comments