There seems to be an issue with serialising and deserialising datetimes for python generated dataclasses.
This example fails with ValueError: ('Invalid RFC3339 date/time', '2023-01-01T00:00:00'):
It seems to be because the serialising to json for datetime is just datetime.isoformat(), which will return '2023-01-01T00:00:00' for the mentioned value. This will then fail the check in the generated dataclass' _parse_rfc3339 function.
There seems to be an issue with serialising and deserialising datetimes for python generated dataclasses. This example fails with
ValueError: ('Invalid RFC3339 date/time', '2023-01-01T00:00:00')
:It seems to be because the serialising to json for datetime is just
datetime.isoformat()
, which will return'2023-01-01T00:00:00'
for the mentioned value. This will then fail the check in the generated dataclass'_parse_rfc3339
function.