Compare commits

...

6 Commits

Author SHA1 Message Date
Kavin 6652b1fa9b
Merge pull request #3 from prateekmedia/patch-1
[FIX] Add Discriminator
2023-06-09 19:58:25 +01:00
Prateek Sunal 5d916bbd2b
fix: add mapping 2023-06-06 19:57:03 +05:30
Prateek Sunal 21cef4768c
fix: remove unwanted 2023-06-06 18:11:16 +05:30
Prateek Sunal 899dc5fa6b
fix: add type to SearchItem 2023-06-06 15:12:40 +05:30
Prateek Sunal 9ccef76e89
fix: types enum 2023-06-05 19:41:18 +05:30
Prateek Sunal 92d1a99f76
fix: oneOf in bindings 2023-06-05 19:34:31 +05:30
1 changed files with 6 additions and 0 deletions

View File

@ -872,6 +872,12 @@ components:
description: The number of videos in the playlist.
SearchItem:
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"