From c6ae1a4c98152a6c176e3f0979e3287555db7018 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 23 May 2023 13:34:14 -0400 Subject: [PATCH] Add 'added in' version Co-authored-by: Hubert Chathi --- data/event-schemas/schema/core-event-schema/call_event.yaml | 1 + data/event-schemas/schema/m.call.hangup.yaml | 3 +++ data/event-schemas/schema/m.call.invite.yaml | 1 + data/event-schemas/schema/m.call.negotiate.yaml | 1 + data/event-schemas/schema/m.call.reject.yaml | 1 + 5 files changed, 7 insertions(+) diff --git a/data/event-schemas/schema/core-event-schema/call_event.yaml b/data/event-schemas/schema/core-event-schema/call_event.yaml index c089e0ad..a8175fc8 100644 --- a/data/event-schemas/schema/core-event-schema/call_event.yaml +++ b/data/event-schemas/schema/core-event-schema/call_event.yaml @@ -16,6 +16,7 @@ properties: description: 'This identifies the party that sent this event. A client may choose to re-use the device ID from end-to-end cryptography for the value of this field.' + x-addedInMatrixVersion: "1.7" required: - call_id - version diff --git a/data/event-schemas/schema/m.call.hangup.yaml b/data/event-schemas/schema/m.call.hangup.yaml index 480ce419..65d697ab 100644 --- a/data/event-schemas/schema/m.call.hangup.yaml +++ b/data/event-schemas/schema/m.call.hangup.yaml @@ -34,6 +34,9 @@ properties: description: Reason for the hangup. Note that this was optional in previous previous versions of the spec, so a missing value should be treated as `user_hangup`. + x-changedInMatrixVersion: + 1.7: |- + Additional values were added. enum: - ice_timeout - ice_failed diff --git a/data/event-schemas/schema/m.call.invite.yaml b/data/event-schemas/schema/m.call.invite.yaml index 5ab1cee4..72020b26 100644 --- a/data/event-schemas/schema/m.call.invite.yaml +++ b/data/event-schemas/schema/m.call.invite.yaml @@ -35,6 +35,7 @@ "invitee": { "type": "string", "description": "The ID of the user being called. If omitted, any user in the room can answer.", + "x-addedInMatrixVersion": "1.7", } }, "required": ["offer", "lifetime"] diff --git a/data/event-schemas/schema/m.call.negotiate.yaml b/data/event-schemas/schema/m.call.negotiate.yaml index 631ac238..abc5ef1d 100644 --- a/data/event-schemas/schema/m.call.negotiate.yaml +++ b/data/event-schemas/schema/m.call.negotiate.yaml @@ -33,6 +33,7 @@ description: | working with the WebRTC API and is mandatory. Receiving clients should not attempt to validate the `type` field, but simply pass the object into the WebRTC API. +x-addedInMatrixVersion: "1.7" allOf: - "$ref": core-event-schema/room_event.yaml properties: diff --git a/data/event-schemas/schema/m.call.reject.yaml b/data/event-schemas/schema/m.call.reject.yaml index 6793219c..39726c1a 100644 --- a/data/event-schemas/schema/m.call.reject.yaml +++ b/data/event-schemas/schema/m.call.reject.yaml @@ -13,6 +13,7 @@ description: | Note that, unlike `m.call.hangup`, this event has no `reason` field: the rejection of a call is always implicitly because the user chose not to answer it. +x-addedInMatrixVersion: "1.7" allOf: - "$ref": core-event-schema/room_event.yaml properties: