Skip to content

Commit

Permalink
Spec implicit filter event limit (matrix-org#1463)
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Mumford <stuart@cadair.com>
  • Loading branch information
Cadair authored and clokep committed May 3, 2023
1 parent d338b16 commit 9b8ea9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1463.clarification
@@ -0,0 +1 @@
Clarify that servers should enforce a default `limit` on a filter if one is not specified.
6 changes: 5 additions & 1 deletion data/api/client-server/definitions/event_filter.yaml
Expand Up @@ -14,7 +14,11 @@
title: EventFilter
properties:
limit:
description: The maximum number of events to return.
description: |
The maximum number of events to return, must be an integer greater than 0.
Servers should apply a default value, and impose a maximum value to avoid
resource exhaustion.
type: integer
not_senders:
description: A list of sender IDs to exclude. If this list is absent then no senders
Expand Down

0 comments on commit 9b8ea9d

Please sign in to comment.