fix: add mapping

This commit is contained in:
Prateek Sunal 2023-06-06 19:57:03 +05:30 committed by GitHub
parent 21cef4768c
commit 5d916bbd2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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"