module

Yt::Validators

Class methods

valid_api_key?(key : String) : Bool

Validates API key format

Source
valid_auth_code?(code : String) : Bool

Validates authorization code format

Source
valid_category_id?(cat : String) : Bool

Validates category ID (numeric string)

Source
valid_client_id?(id : String) : Bool

Validates client ID format

Source
valid_client_secret?(secret : String) : Bool

Validates client secret format

Source
valid_description?(desc : String) : Bool

Validates description length (max 5000 characters)

Source
valid_privacy_status?(status : String) : Bool

Validates privacy status

Source
valid_tags?(tags : Array(String)) : Bool

Validates combined tags length (max 500 characters total across all tags)

Source
valid_title?(title : String) : Bool

Validates title is not empty and within reasonable length (max 100 characters)

Source
valid_transcript_format?(format : String) : Bool

Validates supported transcript formats

Source
valid_url?(url : String) : Bool

Validates URL format

Source
valid_video_file?(path : String) : Bool

Validates file exists and is readable

Source
valid_video_id?(id : String) : Bool

Validates video ID format (11 alphanumeric characters, underscores, hyphens)

Source