Spec implicit filter event limit (#1463)

Signed-off-by: Stuart Mumford <stuart@cadair.com>
This commit is contained in:
Stuart Mumford 2023-03-14 20:27:42 +00:00 committed by GitHub
parent 35f5439e00
commit 09e2250a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1 @@
Clarify that servers should enforce a default `limit` on a filter if one is not specified.

View file

@ -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