mirror of
https://github.com/TeamPiped/OpenAPI.git
synced 2024-08-14 23:56:55 +00:00
Fix for invalid schema.
This commit is contained in:
parent
c03512f3ad
commit
bc7ff1f77b
1 changed files with 8 additions and 4 deletions
12
swagger.yaml
12
swagger.yaml
|
@ -785,6 +785,12 @@ components:
|
|||
videos:
|
||||
type: integer
|
||||
description: The number of videos in the playlist.
|
||||
SearchItem:
|
||||
type: object
|
||||
anyOf:
|
||||
- $ref: "#/components/schemas/StreamItem"
|
||||
- $ref: "#/components/schemas/ChannelItem"
|
||||
- $ref: "#/components/schemas/PlaylistItem"
|
||||
SearchPage:
|
||||
type: object
|
||||
properties:
|
||||
|
@ -793,10 +799,8 @@ components:
|
|||
description: Whether the search query was corrected.
|
||||
items:
|
||||
type: array
|
||||
anyOf:
|
||||
- $ref: "#/components/schemas/StreamItem"
|
||||
- $ref: "#/components/schemas/ChannelItem"
|
||||
- $ref: "#/components/schemas/PlaylistItem"
|
||||
items:
|
||||
$ref: "#/components/schemas/SearchItem"
|
||||
example:
|
||||
- description: "Join us in spreading privacy and security to the masses. Home of: 🕵️♀️ Go Incognito | A Guide To Security, Privacy, ..."
|
||||
name: "Techlore"
|
||||
|
|
Loading…
Reference in a new issue