Skip to content

Commit a47e7aa

Browse files
committed
chore: clean up structure for studio topic
1 parent c7a4a28 commit a47e7aa

File tree

12 files changed

+45
-27
lines changed

12 files changed

+45
-27
lines changed

packages/live-status-gateway-api/api/refactor/components/segment/segmentsEvent/segmentsEvent.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ $defs:
1919
items:
2020
$ref: '../segment/segment.yaml#/$defs/segment'
2121
required: [event, rundownPlaylistId, segments]
22+
# TODO: add examples back to segment definitions

packages/live-status-gateway-api/api/refactor/components/studio/messages/studioUpdate.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ components:
55
messageId: studioUpdate
66
description: Studio status
77
payload:
8-
$ref: '../studio.yaml'
8+
$ref: '../studioEvent/studioEvent.yaml#/$defs/studioEvent'
9+
examples:
10+
- payload:
11+
$ref: '../studioEvent/studioEvent-example.yaml'

packages/live-status-gateway-api/api/refactor/components/studio/studio.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
event: studio
2+
$ref: '../studioStatus/studioStatus-example.yaml'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$defs:
2+
studioEvent:
3+
title: StudioEvent
4+
type: object
5+
allOf:
6+
- title: StudioEvent
7+
type: object
8+
properties:
9+
event:
10+
type: string
11+
const: studio
12+
required: [event]
13+
- $ref: '../studioStatus/studioStatus.yaml#/$defs/studioStatus'
14+
required: [event, id, name, playlists]

packages/live-status-gateway-api/api/refactor/components/studio/example.yaml renamed to packages/live-status-gateway-api/api/refactor/components/studio/studioStatus/studioStatus-example.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
event: studio
21
id: 'B0avqzSM41UJDpbyf3U28'
32
name: 'Studio 0'
43
playlists:
5-
- $ref: '../playlist/example.yaml'
4+
- $ref: '../../playlist/example.yaml'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
$defs:
2+
studioStatus:
3+
title: StudioStatus
4+
type: object
5+
properties:
6+
id:
7+
description: Unique id of the studio
8+
oneOf:
9+
- type: string
10+
- type: 'null'
11+
name:
12+
description: User-presentable name for the studio installation
13+
type: string
14+
playlists:
15+
description: The playlists that are currently loaded in the studio
16+
type: array
17+
items:
18+
$ref: '../../playlist/playlist.yaml'
19+
required: [id, name, playlists]

packages/live-status-gateway-api/api/refactor/index.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ channels:
3636
subscriptions:
3737
$ref: './topics/subscriptions/subscriptions.yaml'
3838
studio:
39-
$ref: './topics/studio/studio.yaml'
39+
$ref: './topics/studio/studioTopic.yaml'
4040
activePlaylist:
4141
$ref: './topics/activePlaylist/activePlaylist.yaml'
4242
activePieces:
4343
$ref: './topics/activePieces/activePieces.yaml'
4444
segments:
45-
$ref: './topics/segments/segments.yaml'
45+
$ref: './topics/segments/segmentsTopic.yaml'
4646
adLibs:
4747
$ref: './topics/adLibs/adLibsTopic.yaml'
4848
packages:
49-
$ref: './topics/packages/packages.yaml'
49+
$ref: './topics/packages/packagesTopic.yaml'
5050
buckets:
5151
$ref: './topics/buckets/bucketsTopic.yaml'
5252

packages/live-status-gateway-api/api/refactor/topics/packages/packages.yaml renamed to packages/live-status-gateway-api/api/refactor/topics/packages/packagesTopic.yaml

File renamed without changes.

packages/live-status-gateway-api/api/refactor/topics/segments/segments.yaml renamed to packages/live-status-gateway-api/api/refactor/topics/segments/segmentsTopic.yaml

File renamed without changes.

0 commit comments

Comments
 (0)