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

* Use type: integer / format: int64 for timestamps

Closes #749.

* Changelog
pull/1131/merge
Alexey Rusakov 2 years ago committed by GitHub
parent 6adacd18c1
commit 6792b7a9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
Fix various typos throughout the specification.

@ -126,6 +126,7 @@ paths:
description: The ID of the room in which the event was posted. description: The ID of the room in which the event was posted.
ts: ts:
type: integer type: integer
format: int64
description: |- description: |-
The unix timestamp at which the event notification was sent, The unix timestamp at which the event notification was sent,
in milliseconds. in milliseconds.

@ -147,7 +147,7 @@ paths:
title: StrippedChildStateEvent title: StrippedChildStateEvent
properties: properties:
origin_server_ts: origin_server_ts:
type: number type: integer
format: int64 format: int64
description: The `origin_server_ts` for the event. description: The `origin_server_ts` for the event.
required: [origin_server_ts] required: [origin_server_ts]

@ -68,6 +68,7 @@ paths:
description: The address of the 3pid being looked up. description: The address of the 3pid being looked up.
validated_at: validated_at:
type: integer type: integer
format: int64
description: |- description: |-
Timestamp, in milliseconds, indicating the time that the 3pid Timestamp, in milliseconds, indicating the time that the 3pid
was validated. was validated.
@ -174,12 +175,15 @@ paths:
description: The Matrix user ID associated with the 3pid. description: The Matrix user ID associated with the 3pid.
not_before: not_before:
type: integer type: integer
format: int64
description: A unix timestamp before which the association is not known to be valid. description: A unix timestamp before which the association is not known to be valid.
not_after: not_after:
type: integer type: integer
format: int64
description: A unix timestamp after which the association is not known to be valid. description: A unix timestamp after which the association is not known to be valid.
ts: ts:
type: integer type: integer
format: int64
description: The unix timestamp at which the association was verified. description: The unix timestamp at which the association was verified.
signatures: signatures:
type: object type: object

@ -184,6 +184,7 @@ paths:
description: The `pushkey` given when the pusher was created. description: The `pushkey` given when the pusher was created.
pushkey_ts: pushkey_ts:
type: integer type: integer
format: int64
description: |- description: |-
The unix timestamp (in seconds) when the The unix timestamp (in seconds) when the
pushkey was last updated. pushkey was last updated.

@ -154,7 +154,7 @@ paths:
- type: object - type: object
properties: properties:
origin_server_ts: origin_server_ts:
type: number type: integer
format: int64 format: int64
description: The `origin_server_ts` for the event. description: The `origin_server_ts` for the event.
required: [origin_server_ts] required: [origin_server_ts]

@ -27,7 +27,8 @@
"x-pattern": "$USER_ID", "x-pattern": "$USER_ID",
"properties": { "properties": {
"ts": { "ts": {
"type": "number", "type": "integer",
"format": "int64",
"description": "The timestamp the receipt was sent at." "description": "The timestamp the receipt was sent at."
} }
} }

Loading…
Cancel
Save