fix: oneOf in bindings
This commit is contained in:
parent
61850e3844
commit
92d1a99f76
11
swagger.yaml
11
swagger.yaml
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue