From 4ca669e36172af36fad26dc4596c309e7deb08a5 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 4 May 2021 10:25:05 +0200 Subject: [PATCH] make streaming playlists pivotable objects in openapi spec --- support/doc/api/openapi.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 4283e61d2..701988478 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml @@ -4208,14 +4208,21 @@ components: type: string format: url VideoStreamingPlaylists: + allOf: + - type: object + properties: + id: + type: integer + type: + type: integer + enum: + - 1 + description: | + Playlist type: + - `1`: HLS + - $ref: '#/components/schemas/VideoStreamingPlaylists-HLS' + VideoStreamingPlaylists-HLS: properties: - id: - type: integer - type: - type: integer - enum: - - 1 - description: 'Playlist type (HLS = `1`)' playlistUrl: type: string format: url -- 2.41.0