Skip to content

Commit c602226

Browse files
committed
Calls: Make UpdateTracksRequest schema to be a array of TrackObject
1 parent fab5ef6 commit c602226

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

public/calls/static/calls-api-2024-05-21.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -368,23 +368,21 @@ paths:
368368
content:
369369
application/json:
370370
schema:
371-
$ref: "#/components/schemas/ChangeTracksRequest"
371+
$ref: "#/components/schemas/UpdateTracksRequest"
372372
examples:
373373
reuse_transceiver:
374374
description: Reuse an existing transceiver for a new track
375375
value:
376376
tracks:
377-
some-track-name:
378-
location: "remote"
377+
- location: "remote"
379378
sessionId: "2a45361d5fd7cc14eface0587c276c94"
380379
trackName: "other-track-name"
381380
mid: "7"
382381
reuse_with_simulcast:
383382
description: Reuse an existing transceiver with simulcast preferences
384383
value:
385384
tracks:
386-
trackID2:
387-
location: "remote"
385+
- location: "remote"
388386
sessionId: "2a45361d5fd7cc14eface0587c276c94"
389387
trackName: "simulcast-track"
390388
mid: "8"
@@ -423,8 +421,7 @@ paths:
423421
value:
424422
requiresImmediateRenegotiation: false
425423
tracks:
426-
trackID1:
427-
mid: "7"
424+
- mid: "7"
428425
sessionId: "2a45361d5fd7cc14eface0587c276c94"
429426
trackName: "new-track-name"
430427

@@ -668,6 +665,16 @@ components:
668665
description: Map of track IDs to track objects for changing tracks
669666
sessionDescription:
670667
$ref: "#/components/schemas/SessionDescription"
668+
UpdateTracksRequest:
669+
type: object
670+
properties:
671+
tracks:
672+
type: array
673+
items:
674+
$ref: "#/components/schemas/TrackObject"
675+
description: Array of track objects for updating tracks
676+
sessionDescription:
677+
$ref: "#/components/schemas/SessionDescription"
671678
UpdateTracksResponse:
672679
type: object
673680
properties:
@@ -678,13 +685,13 @@ components:
678685
requiresImmediateRenegotiation:
679686
type: boolean
680687
tracks:
681-
type: object
682-
additionalProperties:
688+
type: array
689+
items:
683690
allOf:
684691
- $ref: "#/components/schemas/TrackObject"
685692
- properties:
686693
errorCode:
687694
type: string
688695
errorDescription:
689696
type: string
690-
description: Map of track IDs to track objects with results
697+
description: Array of track objects with results

0 commit comments

Comments
 (0)