From 5d916bbd2b876f039b8c3f107fe09158022e21e1 Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Tue, 6 Jun 2023 19:57:03 +0530 Subject: [PATCH] fix: add mapping --- swagger.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swagger.yaml b/swagger.yaml index b75a398..3ebeb99 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -874,6 +874,10 @@ components: type: object discriminator: propertyName: type + mapping: + stream: "#/components/schemas/StreamItem" + channel: "#/components/schemas/ChannelItem" + playlist: "#/components/schemas/PlaylistItem" oneOf: - $ref: "#/components/schemas/StreamItem" - $ref: "#/components/schemas/ChannelItem"