Apply suggestions from code review

Co-authored-by: Eric Eastwood <madlittlemods@gmail.com>
This commit is contained in:
Hubert Chathi 2022-11-30 09:27:52 -05:00 committed by GitHub
parent 600330d3be
commit 1639b64285
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -13,7 +13,7 @@
# limitations under the License.
swagger: '2.0'
info:
title: "Matrix Client-Server Rooms by date API"
title: "Matrix Client-Server events in room by date API"
version: "1.0.0"
host: localhost:8008
schemes:
@ -57,7 +57,7 @@ paths:
type: integer
name: ts
description: |-
The timestamp to search for, as given in milliseconds
The timestamp to search from, as given in milliseconds
since the Unix epoch.
required: true
x-example: 1432684800000
@ -84,6 +84,9 @@ paths:
type: integer
description: |-
The event's timestamp, in milliseconds since the Unix epoch.
This makes it easy to do a quick comparison to see if the
`event_id` fetched is too far out of range to be useful for your
use case.
required: ['event_id', 'origin_server_ts']
examples:
application/json: {

View file

@ -200,7 +200,7 @@ paths:
type: integer
name: ts
description: |-
The timestamp to search for, as given in milliseconds
The timestamp to search from, as given in milliseconds
since the Unix epoch.
required: true
x-example: 1432684800000