Skip to content

Commit

Permalink
Use type: integer, format: int64 for timestamps (matrix-org#1129)
Browse files Browse the repository at this point in the history
* Use type: integer / format: int64 for timestamps

Closes matrix-org#749.

* Changelog
  • Loading branch information
KitsuneRal authored Jun 15, 2022
1 parent 6adacd1 commit 6792b7a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1129.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix various typos throughout the specification.
1 change: 1 addition & 0 deletions data/api/client-server/notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ paths:
description: The ID of the room in which the event was posted.
ts:
type: integer
format: int64
description: |-
The unix timestamp at which the event notification was sent,
in milliseconds.
Expand Down
2 changes: 1 addition & 1 deletion data/api/client-server/space_hierarchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ paths:
title: StrippedChildStateEvent
properties:
origin_server_ts:
type: number
type: integer
format: int64
description: The `origin_server_ts` for the event.
required: [origin_server_ts]
Expand Down
4 changes: 4 additions & 0 deletions data/api/identity/v2_associations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ paths:
description: The address of the 3pid being looked up.
validated_at:
type: integer
format: int64
description: |-
Timestamp, in milliseconds, indicating the time that the 3pid
was validated.
Expand Down Expand Up @@ -174,12 +175,15 @@ paths:
description: The Matrix user ID associated with the 3pid.
not_before:
type: integer
format: int64
description: A unix timestamp before which the association is not known to be valid.
not_after:
type: integer
format: int64
description: A unix timestamp after which the association is not known to be valid.
ts:
type: integer
format: int64
description: The unix timestamp at which the association was verified.
signatures:
type: object
Expand Down
1 change: 1 addition & 0 deletions data/api/push-gateway/push_notifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ paths:
description: The `pushkey` given when the pusher was created.
pushkey_ts:
type: integer
format: int64
description: |-
The unix timestamp (in seconds) when the
pushkey was last updated.
Expand Down
2 changes: 1 addition & 1 deletion data/api/server-server/space_hierarchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ paths:
- type: object
properties:
origin_server_ts:
type: number
type: integer
format: int64
description: The `origin_server_ts` for the event.
required: [origin_server_ts]
Expand Down
3 changes: 2 additions & 1 deletion data/event-schemas/schema/m.receipt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"x-pattern": "$USER_ID",
"properties": {
"ts": {
"type": "number",
"type": "integer",
"format": "int64",
"description": "The timestamp the receipt was sent at."
}
}
Expand Down

0 comments on commit 6792b7a

Please sign in to comment.