Fix for invalid schema.

This commit is contained in:
Kavin 2022-07-07 18:32:31 +01:00
parent c03512f3ad
commit bc7ff1f77b
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -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"