Skip to content
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

Use type: integer, format: int64 for timestamps #1129

Merged
merged 2 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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