mirror of
https://github.com/TeamPiped/OpenAPI.git
synced 2024-08-14 23:56:55 +00:00
fix: oneOf in bindings
This commit is contained in:
parent
61850e3844
commit
92d1a99f76
1 changed files with 8 additions and 3 deletions
11
swagger.yaml
11
swagger.yaml
|
@ -685,7 +685,7 @@ components:
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
description: The type of the stream item. Always stream.
|
description: The type of the stream item. Always stream.
|
||||||
example: stream
|
const: stream
|
||||||
duration:
|
duration:
|
||||||
type: integer
|
type: integer
|
||||||
description: The duration of the video in seconds.
|
description: The duration of the video in seconds.
|
||||||
|
@ -829,7 +829,7 @@ components:
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
description: The type of the channel item. Always channel.
|
description: The type of the channel item. Always channel.
|
||||||
example: channel
|
const: channel
|
||||||
description:
|
description:
|
||||||
type: string
|
type: string
|
||||||
description: The description of the channel.
|
description: The description of the channel.
|
||||||
|
@ -857,7 +857,7 @@ components:
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
description: The type of the playlist item. Always playlist.
|
description: The type of the playlist item. Always playlist.
|
||||||
example: playlist
|
const: playlist
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: The name of the playlist.
|
description: The name of the playlist.
|
||||||
|
@ -872,6 +872,11 @@ 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
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: "#/components/schemas/StreamItem"
|
- $ref: "#/components/schemas/StreamItem"
|
||||||
- $ref: "#/components/schemas/ChannelItem"
|
- $ref: "#/components/schemas/ChannelItem"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue