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:
 | 
					        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"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue