-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Representation of date-time #30
Comments
Which file are you referring to, exactly, @martin-lindstrom?
|
Yes, the timestamp in JSON are strings. But the CBOR-encoding of the payload is:
And it seems like milliseconds is used. According to RFC8949 it should be seconds since epoch. |
@nodh So, AT has one definite bug (using milliseconds instead of seconds), and one potential violation of the schema. I don't know if we should use issues to indicate interop-issues. I think it is a good way. |
@nodh Another issue for you concerning the timestamp. The elements for sc and dr is not tagged. If, which I strongly advises against, are to use numeric representations for timestamps, you need to tag it (1). See RFC8949. |
Thanks a lot for testing our codes and spotting that bug :-) |
I see that AT uses ints to represent the
sc
anddr
fields of a test entry (3.json). In CBOR both ints and strings may be used to represent a date-time, BUT ...Our schema states very clearly that these fields are strings (with the addition of the format as a date-time):
So, in my view this is a violation of the schema, and that date-time:s should be represented as strings. I can see why someone thinks an int should be used, but we have already had this discussion during the schema development, and there were consensus for using string-representations only.
The text was updated successfully, but these errors were encountered: