mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-21 00:48:38 +01:00
Spec implicit filter event limit (#1463)
Signed-off-by: Stuart Mumford <stuart@cadair.com>
This commit is contained in:
parent
35f5439e00
commit
09e2250a8d
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify that servers should enforce a default `limit` on a filter if one is not specified.
|
||||||
|
|
@ -14,7 +14,11 @@
|
||||||
title: EventFilter
|
title: EventFilter
|
||||||
properties:
|
properties:
|
||||||
limit:
|
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
|
type: integer
|
||||||
not_senders:
|
not_senders:
|
||||||
description: A list of sender IDs to exclude. If this list is absent then no senders
|
description: A list of sender IDs to exclude. If this list is absent then no senders
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue