Skip to content

Commit c492fe4

Browse files
committed
Add strict typing to the m.receipt EDU; Fix description of event_ids
1 parent 44d1f8d commit c492fe4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/server-server/definitions/event-schemas/m.receipt.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ allOf:
2424
- type: object
2525
properties:
2626
edu_type:
27-
type: string
27+
type: enum
28+
enum: ['m.receipt']
2829
description: The string ``m.receipt``
2930
example: "m.receipt"
3031
content:
@@ -46,8 +47,7 @@ allOf:
4647
event_ids:
4748
type: array
4849
description: |-
49-
The event ID that the user has read up to. Must be exactly
50-
one element in length.
50+
The extremity event IDs that the user has read up to.
5151
minItems: 1
5252
maxItems: 1
5353
items:

0 commit comments

Comments
 (0)