{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/ResourceId", "title": "ResourceId", "type": "object", "description": "Identifies the resource in the search result", "required": [ "kind" ], "properties": { "kind": { "type": "string", "description": "Type of resource", "enum": [ "youtube#video", "youtube#channel", "youtube#playlist" ], "example": "youtube#video" }, "videoId": { "type": "string", "description": "Video ID if the result is a video", "example": "dQw4w9WgXcQ" }, "channelId": { "type": "string", "description": "Channel ID if the result is a channel", "example": "UC_x5XG1OV2P6uZZ5FSM9Ttw" }, "playlistId": { "type": "string", "description": "Playlist ID if the result is a playlist", "example": "PLrAXtmErZgOeiKm4sgNOknGvNjby9efdf" } } }