fix: oneOf in bindings

This commit is contained in:
Prateek Sunal 2023-06-05 19:34:31 +05:30 committed by GitHub
parent 61850e3844
commit 92d1a99f76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -685,7 +685,7 @@ components:
type:
type: string
description: The type of the stream item. Always stream.
example: stream
const: stream
duration:
type: integer
description: The duration of the video in seconds.
@ -829,7 +829,7 @@ components:
type:
type: string
description: The type of the channel item. Always channel.
example: channel
const: channel
description:
type: string
description: The description of the channel.
@ -857,7 +857,7 @@ components:
type:
type: string
description: The type of the playlist item. Always playlist.
example: playlist
const: playlist
name:
type: string
description: The name of the playlist.
@ -872,6 +872,11 @@ components:
description: The number of videos in the playlist.
SearchItem:
type: object
discriminator:
propertyName: type
properties:
type:
type: string
oneOf:
- $ref: "#/components/schemas/StreamItem"
- $ref: "#/components/schemas/ChannelItem"