From a7f5b8f8f41e32d4de9cd560199288ab76e55fc4 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 4 May 2023 12:20:53 +0100 Subject: [PATCH] Fix type of other version fields, fix anchor. --- content/client-server-api/modules/voip_events.md | 2 +- data/event-schemas/schema/m.call.answer.yaml | 2 +- data/event-schemas/schema/m.call.candidates.yaml | 2 +- data/event-schemas/schema/m.call.hangup.yaml | 2 +- data/event-schemas/schema/m.call.negotiate.yaml | 2 +- data/event-schemas/schema/m.call.reject.yaml | 2 +- data/event-schemas/schema/m.call.select_answer.yaml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/content/client-server-api/modules/voip_events.md b/content/client-server-api/modules/voip_events.md index b18f7d7f..e269d640 100644 --- a/content/client-server-api/modules/voip_events.md +++ b/content/client-server-api/modules/voip_events.md @@ -39,7 +39,7 @@ or it may choose, for example, to use a different one for each call to avoid lea devices were used in a call (in an unencrypted room) or if a single device (ie. access token) were used to send signalling for more than one call party. -A grammar for `party_id` is defined [below](#specify-exact-grammar-for-voip-ids). +A grammar for `party_id` is defined [below](#grammar-for-voip-ids). #### Politeness In line with WebRTC perfect negotiation (https://w3c.github.io/webrtc-pc/#perfect-negotiation-example) diff --git a/data/event-schemas/schema/m.call.answer.yaml b/data/event-schemas/schema/m.call.answer.yaml index d6caddc5..7037f254 100644 --- a/data/event-schemas/schema/m.call.answer.yaml +++ b/data/event-schemas/schema/m.call.answer.yaml @@ -30,7 +30,7 @@ "required": ["type", "sdp"] }, "version": { - "type": "number", + "type": "string", "description": "The version of the VoIP specification this message adheres to. This specification is version 1. This field is a string such that experimental implementations can use non-integer versions. This field was an integer in the previous spec version and implementations must accept an integer 0" }, "party_id": { diff --git a/data/event-schemas/schema/m.call.candidates.yaml b/data/event-schemas/schema/m.call.candidates.yaml index 2d5c5501..8937fc1b 100644 --- a/data/event-schemas/schema/m.call.candidates.yaml +++ b/data/event-schemas/schema/m.call.candidates.yaml @@ -40,7 +40,7 @@ "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. " }, "version": { - "type": "integer", + "type": "string", "description": "The version of the VoIP specification this message adheres to. This specification is version 1. This field is a string such that experimental implementations can use non-integer versions. This field was an integer in the previous spec version and implementations must accept an integer 0." } }, diff --git a/data/event-schemas/schema/m.call.hangup.yaml b/data/event-schemas/schema/m.call.hangup.yaml index 1754b2de..e9fba900 100644 --- a/data/event-schemas/schema/m.call.hangup.yaml +++ b/data/event-schemas/schema/m.call.hangup.yaml @@ -30,7 +30,7 @@ properties: type: string description: The ID of the call this event relates to. version: - type: integer + type: string description: The version of the VoIP specification this message adheres to. This specification is version 1. This field is a string such that experimental implementations can use non-integer versions. This field was an integer diff --git a/data/event-schemas/schema/m.call.negotiate.yaml b/data/event-schemas/schema/m.call.negotiate.yaml index af197c38..92aecef4 100644 --- a/data/event-schemas/schema/m.call.negotiate.yaml +++ b/data/event-schemas/schema/m.call.negotiate.yaml @@ -44,7 +44,7 @@ properties: type: string description: The ID of the call this event relates to. version: - type: integer + type: string description: The version of the VoIP specification this message adheres to. This specification is version 1. This field is a string such that experimental implementations can use non-integer versions. This field was an integer diff --git a/data/event-schemas/schema/m.call.reject.yaml b/data/event-schemas/schema/m.call.reject.yaml index 7a027379..051b3f1e 100644 --- a/data/event-schemas/schema/m.call.reject.yaml +++ b/data/event-schemas/schema/m.call.reject.yaml @@ -22,7 +22,7 @@ properties: type: string description: The ID of the call this event relates to. version: - type: integer + type: string description: The version of the VoIP specification this message adheres to. This specification is version 1. This field is a string such that experimental implementations can use non-integer versions. This field was an integer diff --git a/data/event-schemas/schema/m.call.select_answer.yaml b/data/event-schemas/schema/m.call.select_answer.yaml index 88f32f1e..a28a7465 100644 --- a/data/event-schemas/schema/m.call.select_answer.yaml +++ b/data/event-schemas/schema/m.call.select_answer.yaml @@ -13,7 +13,7 @@ "description": "The ID of the call this event relates to." }, "version": { - "type": "integer", + "type": "string", "description": "The version of the VoIP specification this message adheres to. This specification is version 1. This field is a string such that experimental implementations can use non-integer versions. This field was an integer in the previous spec version and implementations must accept an integer 0." }, "party_id": {