mirror of
https://github.com/TeamPiped/OpenAPI.git
synced 2024-08-14 23:56:55 +00:00
Merge pull request #3 from prateekmedia/patch-1
[FIX] Add Discriminator
This commit is contained in:
commit
6652b1fa9b
1 changed files with 6 additions and 0 deletions
|
@ -872,6 +872,12 @@ components:
|
||||||
description: The number of videos in the playlist.
|
description: The number of videos in the playlist.
|
||||||
SearchItem:
|
SearchItem:
|
||||||
type: object
|
type: object
|
||||||
|
discriminator:
|
||||||
|
propertyName: type
|
||||||
|
mapping:
|
||||||
|
stream: "#/components/schemas/StreamItem"
|
||||||
|
channel: "#/components/schemas/ChannelItem"
|
||||||
|
playlist: "#/components/schemas/PlaylistItem"
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: "#/components/schemas/StreamItem"
|
- $ref: "#/components/schemas/StreamItem"
|
||||||
- $ref: "#/components/schemas/ChannelItem"
|
- $ref: "#/components/schemas/ChannelItem"
|
||||||
|
|
Loading…
Reference in a new issue