Skip to content

Commit

Permalink
Remove definition of Event for /notifications (#3525)
Browse files Browse the repository at this point in the history
The documentation for the `/notifications` API had its own special definition
of what an Event was, which was used nowhere else.

The common definition isn't perfect, but it *is* common, so it gives us a
better starting place for improvement.
  • Loading branch information
richvdh authored Dec 2, 2021
1 parent 7f200c5 commit 83b24dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 66 deletions.
65 changes: 0 additions & 65 deletions data/api/client-server/definitions/event.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion data/api/client-server/notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ paths:
title: Event
description: The Event object for the event that triggered the notification.
allOf:
- "$ref": "definitions/event.yaml"
- $ref: ../../event-schemas/schema/core-event-schema/sync_room_event.yaml
profile_tag:
type: string
description: The profile tag of the rule that matched this event.
Expand Down

0 comments on commit 83b24dd

Please sign in to comment.