Skip to content

Commit

Permalink
Clarify that /context always returns 'event' even if limit is zero (m…
Browse files Browse the repository at this point in the history
…atrix-org#1239)

Signed-off-by: Sumner Evans <me@sumnerevans.com>
  • Loading branch information
sumnerevans authored and clokep committed May 3, 2023
1 parent 049c9c4 commit 402ca51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1239.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that `/context` always returns `event` even if `limit` is zero. Contributed by @sumnerevans at @beeper.
5 changes: 4 additions & 1 deletion data/api/client-server/event_context.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ paths:
type: integer
name: limit
description: |-
The maximum number of events to return. Default: 10.
The maximum number of context events to return. The limit applies
to the sum of the `events_before` and `events_after` arrays. The
requested event ID is always returned in `event` even if `limit` is
0. Defaults to 10.
x-example: 3
- in: query
name: filter
Expand Down

0 comments on commit 402ca51

Please sign in to comment.