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: videos:
type: integer type: integer
description: The number of videos in the playlist. 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: SearchPage:
type: object type: object
properties: properties:
@ -793,10 +799,8 @@ components:
description: Whether the search query was corrected. description: Whether the search query was corrected.
items: items:
type: array type: array
anyOf: items:
- $ref: "#/components/schemas/StreamItem" $ref: "#/components/schemas/SearchItem"
- $ref: "#/components/schemas/ChannelItem"
- $ref: "#/components/schemas/PlaylistItem"
example: example:
- description: "Join us in spreading privacy and security to the masses. Home of: 🕵️‍♀️ Go Incognito | A Guide To Security, Privacy, ..." - description: "Join us in spreading privacy and security to the masses. Home of: 🕵️‍♀️ Go Incognito | A Guide To Security, Privacy, ..."
name: "Techlore" name: "Techlore"