diff --git a/rs/packages/api/src/routes/accounts/mod.rs b/rs/packages/api/src/routes/accounts/mod.rs index ba741f9c..d69fa454 100644 --- a/rs/packages/api/src/routes/accounts/mod.rs +++ b/rs/packages/api/src/routes/accounts/mod.rs @@ -184,7 +184,7 @@ pub mod post { max = "VALIDATE_ACCOUNT_NAME_MAX_LEN", message = "Account name is either too long or empty" ), - non_control_character(message = "Account name contains invalid characters") + // non_control_character(message = "Account name contains invalid characters") )] pub name: String, pub plan_id: String, diff --git a/rs/packages/api/src/routes/admins/mod.rs b/rs/packages/api/src/routes/admins/mod.rs index 7ff96992..5c4f5c91 100644 --- a/rs/packages/api/src/routes/admins/mod.rs +++ b/rs/packages/api/src/routes/admins/mod.rs @@ -130,7 +130,7 @@ pub mod post { max = "VALIDATE_ADMIN_FIRST_NAME_MAX_LEN", message = "First name is either too short or too long", ), - non_control_character(message = "First name contains invalid characters") + // non_control_character(message = "First name contains invalid characters") )] pub first_name: String, @@ -141,7 +141,7 @@ pub mod post { max = "VALIDATE_ADMIN_LAST_NAME_MAX_LEN", message = "Last name is either too short or too long", ), - non_control_character(message = "Last name contains invalid characters") + // non_control_character(message = "Last name contains invalid characters") )] pub last_name: String, @@ -153,7 +153,7 @@ pub mod post { max = "VALIDATE_ADMIN_EMAIL_MAX_LEN", message = "Email is either too short or too long", ), - non_control_character(message = "Email contains invalid characters") + // non_control_character(message = "Email contains invalid characters") )] pub email: String, diff --git a/rs/packages/api/src/routes/auth/user/register.rs b/rs/packages/api/src/routes/auth/user/register.rs index e2bf46e1..d4e6d2b9 100644 --- a/rs/packages/api/src/routes/auth/user/register.rs +++ b/rs/packages/api/src/routes/auth/user/register.rs @@ -169,7 +169,7 @@ pub mod post { max = "VALIDATE_USER_FIRST_NAME_MAX_LEN", message = "First name is either too short or too long" ), - non_control_character(message = "First name contains invalid characters") + // non_control_character(message = "First name contains invalid characters") )] first_name: String, @@ -180,7 +180,7 @@ pub mod post { max = "VALIDATE_USER_LAST_NAME_MAX_LEN", message = "Last name is either too short or too long" ), - non_control_character(message = "Last name contains invalid characters") + // non_control_character(message = "Last name contains invalid characters") )] last_name: String, @@ -191,7 +191,7 @@ pub mod post { max = "VALIDATE_ACCOUNT_NAME_MAX_LEN", message = "Account name is either too short or too long" ), - non_control_character(message = "Account name contains invalid characters") + // non_control_character(message = "Account name contains invalid characters") )] account_name: String, @@ -205,7 +205,7 @@ pub mod post { max = "VALIDATE_USER_EMAIL_MAX_LEN", message = "Email is either too short or too long" ), - non_control_character(message = "Email contains invalid characters") + // non_control_character(message = "Email contains invalid characters") )] email: String, @@ -220,7 +220,7 @@ pub mod post { #[validate( phone(message = "Phone is invalid"), length(max = "VALIDATE_USER_PHONE_MAX_LEN", message = "Phone is too long"), - non_control_character(message = "Phone name contains invalid characters") + // non_control_character(message = "Phone name contains invalid characters") )] phone: Option, @@ -231,7 +231,7 @@ pub mod post { max = "VALIDATE_USER_LANGUAGE_MAX_LEN", message = "Language is too long" ), - non_control_character(message = "Language contains invalid characters") + // non_control_character(message = "Language contains invalid characters") )] language: Option, diff --git a/rs/packages/api/src/routes/invitations/accept.rs b/rs/packages/api/src/routes/invitations/accept.rs index 587deecc..b8483970 100644 --- a/rs/packages/api/src/routes/invitations/accept.rs +++ b/rs/packages/api/src/routes/invitations/accept.rs @@ -61,7 +61,7 @@ pub mod post { max = "VALIDATE_USER_FIRST_NAME_MAX_LEN", message = "First name is either too short or too long" ), - non_control_character(message = "First name contains invalid characters") + // non_control_character(message = "First name contains invalid characters") )] pub first_name: String, @@ -72,7 +72,7 @@ pub mod post { max = "VALIDATE_USER_LAST_NAME_MAX_LEN", message = "Last name is either too short or too long" ), - non_control_character(message = "Last name contains invalid characters") + // non_control_character(message = "Last name contains invalid characters") )] pub last_name: String, @@ -84,7 +84,7 @@ pub mod post { max = "VALIDATE_USER_PHONE_MAX_LEN", message = "Phone number is either too short or too long" ), - non_control_character(message = "Phone number contains invalid characters") + // non_control_character(message = "Phone number contains invalid characters") )] pub phone: Option, diff --git a/rs/packages/api/src/routes/invitations/mod.rs b/rs/packages/api/src/routes/invitations/mod.rs index 4ea05445..de0c0338 100644 --- a/rs/packages/api/src/routes/invitations/mod.rs +++ b/rs/packages/api/src/routes/invitations/mod.rs @@ -351,7 +351,7 @@ pub mod post { max = "VALIDATE_USER_EMAIL_MAX_LEN", message = "Email is either too short or too long", ), - non_control_character(message = "Email contains invalid characters") + // non_control_character(message = "Email contains invalid characters") )] pub email: String, } diff --git a/rs/packages/api/src/routes/me/api_keys/id.rs b/rs/packages/api/src/routes/me/api_keys/id.rs index c85c3f2d..5ef12fed 100644 --- a/rs/packages/api/src/routes/me/api_keys/id.rs +++ b/rs/packages/api/src/routes/me/api_keys/id.rs @@ -158,7 +158,7 @@ pub mod patch { max = "VALIDATE_ACCESS_TOKEN_TITLE_MAX_LEN", message = "Title is either too short or too long" ), - non_control_character(message = "Title contains invalid characters") + // non_control_character(message = "Title contains invalid characters") )] title: Option, } diff --git a/rs/packages/api/src/routes/me/api_keys/mod.rs b/rs/packages/api/src/routes/me/api_keys/mod.rs index 869022c0..cf8ac9f6 100644 --- a/rs/packages/api/src/routes/me/api_keys/mod.rs +++ b/rs/packages/api/src/routes/me/api_keys/mod.rs @@ -228,7 +228,7 @@ pub mod post { max = "VALIDATE_ACCESS_TOKEN_TITLE_MAX_LEN", message = "API key title is either too short or too long", ), - non_control_character(message = "API key title contains invalid characters") + // non_control_character(message = "API key title contains invalid characters") )] title: String, password: String, diff --git a/rs/packages/api/src/routes/plans/id.rs b/rs/packages/api/src/routes/plans/id.rs index c141e589..6886fc15 100644 --- a/rs/packages/api/src/routes/plans/id.rs +++ b/rs/packages/api/src/routes/plans/id.rs @@ -205,7 +205,7 @@ pub mod patch { max = "VALIDATE_PLAN_IDENTIFIER_MAX_LEN", message = "Identifier is either too short or too long" ), - non_control_character(message = "Identifier contains invalid characters") + // non_control_character(message = "Identifier contains invalid characters") )] identifier: Option, @@ -217,7 +217,7 @@ pub mod patch { max = "VALIDATE_PLAN_SLUG_MAX_LEN", message = "Slug is either too short or too long" ), - non_control_character(message = "Slug contains invalid characters") + // non_control_character(message = "Slug contains invalid characters") )] slug: Option, @@ -229,7 +229,7 @@ pub mod patch { max = "VALIDATE_PLAN_NAME_MAX_LEN", message = "Display name is either too short or too long" ), - non_control_character(message = "Display name contains invalid characters") + // non_control_character(message = "Display name contains invalid characters") )] display_name: Option, diff --git a/rs/packages/api/src/routes/plans/mod.rs b/rs/packages/api/src/routes/plans/mod.rs index 0f612db1..e4f45647 100644 --- a/rs/packages/api/src/routes/plans/mod.rs +++ b/rs/packages/api/src/routes/plans/mod.rs @@ -150,7 +150,7 @@ pub mod post { max = "VALIDATE_PLAN_IDENTIFIER_MAX_LEN", message = "Identifier is either too short or too long" ), - non_control_character(message = "Identifier contains invalid characters") + // non_control_character(message = "Identifier contains invalid characters") )] pub identifier: String, @@ -161,7 +161,7 @@ pub mod post { max = "VALIDATE_PLAN_SLUG_MAX_LEN", message = "Slug is either too short or too long" ), - non_control_character(message = "Slug contains invalid characters") + // non_control_character(message = "Slug contains invalid characters") )] pub slug: String, @@ -172,7 +172,7 @@ pub mod post { max = "VALIDATE_PLAN_NAME_MAX_LEN", message = "Display name is either too short or too long" ), - non_control_character(message = "Display name contains invalid characters") + // non_control_character(message = "Display name contains invalid characters") )] pub display_name: String, diff --git a/rs/packages/api/src/routes/stations/files/metadata.rs b/rs/packages/api/src/routes/stations/files/metadata.rs index 4f9e1cd2..afffbeb5 100644 --- a/rs/packages/api/src/routes/stations/files/metadata.rs +++ b/rs/packages/api/src/routes/stations/files/metadata.rs @@ -45,7 +45,7 @@ pub mod put { max = "VALIDATE_AUDIO_FILE_METADATA_TITLE_MAX_LEN", message = "Title is too long" ), - non_control_character(message = "Title contains invalid characters") + // non_control_character(message = "Title contains invalid characters") )] pub title: Option>, @@ -61,7 +61,7 @@ pub mod put { max = "VALIDATE_AUDIO_FILE_METADATA_ARTIST_MAX_LEN", message = "Artist is too long" ), - non_control_character(message = "Artist contains invalid characters") + // non_control_character(message = "Artist contains invalid characters") )] pub artist: Option>, @@ -77,7 +77,7 @@ pub mod put { max = "VALIDATE_AUDIO_FILE_METADATA_ALBUM_MAX_LEN", message = "Album is too long" ), - non_control_character(message = "Album contains invalid characters") + // non_control_character(message = "Album contains invalid characters") )] pub album: Option>, @@ -93,7 +93,7 @@ pub mod put { max = "VALIDATE_AUDIO_FILE_METADATA_ALBUM_ARTIST_MAX_LEN", message = "Album artist is too long" ), - non_control_character(message = "Album artist contains invalid characters") + // non_control_character(message = "Album artist contains invalid characters") )] pub album_artist: Option>, @@ -109,7 +109,7 @@ pub mod put { max = "VALIDATE_AUDIO_FILE_METADATA_GENRE_MAX_LEN", message = "Genre is too long" ), - non_control_character(message = "Genre contains invalid characters") + // non_control_character(message = "Genre contains invalid characters") )] pub genre: Option>, @@ -133,7 +133,7 @@ pub mod put { max = "VALIDATE_AUDIO_FILE_METADATA_COMMENT_MAX_LEN", message = "Comment is too long" ), - non_control_character(message = "Comment contains invalid characters") + // non_control_character(message = "Comment contains invalid characters") )] pub comment: Option>, diff --git a/rs/packages/api/src/routes/stations/mod.rs b/rs/packages/api/src/routes/stations/mod.rs index 4940bc5e..be93a74f 100644 --- a/rs/packages/api/src/routes/stations/mod.rs +++ b/rs/packages/api/src/routes/stations/mod.rs @@ -187,7 +187,7 @@ pub mod post { max = "VALIDATE_STATION_NAME_MAX_LEN", message = "Station name is empty or too long" ), - non_control_character(message = "Station name cannot have control characters") + // non_control_character(message = "Station name cannot have control characters") )] pub name: String, @@ -199,7 +199,7 @@ pub mod post { max = "VALIDATE_STATION_SLOGAN_MAX_LEN", message = "Slogan is empty or too long" ), - non_control_character(message = "Slogan cannot have control characters") + // non_control_character(message = "Slogan cannot have control characters") )] pub slogan: Option, @@ -221,7 +221,7 @@ pub mod post { #[validate( email(message = "Email is invalid"), length(max = "VALIDATE_STATION_EMAIL_MAX_LEN", message = "Email is too long"), - non_control_character(message = "Email cannot have control characters") + // non_control_character(message = "Email cannot have control characters") )] pub email: Option, @@ -230,7 +230,7 @@ pub mod post { #[validate( phone(message = "Phone is invalid"), length(max = "VALIDATE_STATION_PHONE_MAX_LEN", message = "Phone is too long"), - non_control_character(message = "Phone cannot have control characters") + // non_control_character(message = "Phone cannot have control characters") )] pub phone: Option, @@ -242,7 +242,7 @@ pub mod post { max = "VALIDATE_STATION_WHATSAPP_MAX_LEN", message = "WhatsApp number is too long" ), - non_control_character(message = "WhatsApp number cannot have control characters") + // non_control_character(message = "WhatsApp number cannot have control characters") )] pub whatsapp: Option, @@ -255,7 +255,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Website URL is too long" ), - non_control_character(message = "Website URL cannot have control characters") + // non_control_character(message = "Website URL cannot have control characters") )] pub website_url: Option, @@ -268,7 +268,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Twitter URL is too long" ), - non_control_character(message = "Twitter URL cannot have control characters") + // non_control_character(message = "Twitter URL cannot have control characters") )] pub twitter_url: Option, @@ -281,7 +281,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Facebook URL is too long" ), - non_control_character(message = "Facebook URL cannot have control characters") + // non_control_character(message = "Facebook URL cannot have control characters") )] pub facebook_url: Option, @@ -294,7 +294,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Instagram URL is too long" ), - non_control_character(message = "Instagram URL cannot have control characters") + // non_control_character(message = "Instagram URL cannot have control characters") )] pub instagram_url: Option, @@ -307,7 +307,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Threads URL is too long" ), - non_control_character(message = "Threads URL cannot have control characters") + // non_control_character(message = "Threads URL cannot have control characters") )] pub threads_url: Option, @@ -320,7 +320,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Youtube URL is too long" ), - non_control_character(message = "Youtube URL cannot have control characters") + // non_control_character(message = "Youtube URL cannot have control characters") )] pub youtube_url: Option, @@ -333,7 +333,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Twitch URL is too long" ), - non_control_character(message = "Twitch URL cannot have control characters") + // non_control_character(message = "Twitch URL cannot have control characters") )] pub twitch_url: Option, @@ -345,7 +345,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "TikTok URL is invalid" ), - non_control_character(message = "TikTok URL cannot have control characters") + // non_control_character(message = "TikTok URL cannot have control characters") )] pub tiktok_url: Option, @@ -357,7 +357,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Spotify URL is invalid" ), - non_control_character(message = "Spotify URL cannot have control characters") + // non_control_character(message = "Spotify URL cannot have control characters") )] pub spotify_url: Option, @@ -369,7 +369,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "RadioCut URL is invalid" ), - non_control_character(message = "RadioCut URL cannot have control characters") + // non_control_character(message = "RadioCut URL cannot have control characters") )] pub radiocut_url: Option, @@ -382,7 +382,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Google Play URL is too long" ), - non_control_character(message = "Google Play URL cannot have control characters") + // non_control_character(message = "Google Play URL cannot have control characters") )] pub google_play_url: Option, @@ -395,7 +395,7 @@ pub mod post { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "App Store URL is too long" ), - non_control_character(message = "App Store URL cannot have control characters") + // non_control_character(message = "App Store URL cannot have control characters") )] pub app_store_url: Option, @@ -411,7 +411,7 @@ pub mod post { max = "VALIDATE_STATION_EXTERNAL_RELAY_URL_MAX_LEN", message = "External Relay URL is too long" ), - non_control_character(message = "External Relay URL cannot have control characters") + // non_control_character(message = "External Relay URL cannot have control characters") )] pub external_relay_url: Option, diff --git a/rs/packages/api/src/routes/users/id.rs b/rs/packages/api/src/routes/users/id.rs index 65e27baa..eb107213 100644 --- a/rs/packages/api/src/routes/users/id.rs +++ b/rs/packages/api/src/routes/users/id.rs @@ -84,7 +84,7 @@ pub mod patch { max = "VALIDATE_USER_FIRST_NAME_MAX_LEN", message = "First name is either too long or too short" ), - non_control_character(message = "First name contains invalid characters") + // non_control_character(message = "First name contains invalid characters") )] first_name: Option, @@ -95,7 +95,7 @@ pub mod patch { max = "VALIDATE_USER_LAST_NAME_MAX_LEN", message = "Last name is either too long or too short" ), - non_control_character(message = "Last name contains invalid characters") + // non_control_character(message = "Last name contains invalid characters") )] last_name: Option, @@ -127,7 +127,7 @@ pub mod patch { max = "VALIDATE_USER_LANGUAGE_MAX_LEN", message = "Language is either too long or too short" ), - non_control_character(message = "Language contains invalid characters") + // non_control_character(message = "Language contains invalid characters") )] language: Option>, } diff --git a/rs/packages/api/src/routes/users/mod.rs b/rs/packages/api/src/routes/users/mod.rs index 5ad43e01..f4f1e30d 100644 --- a/rs/packages/api/src/routes/users/mod.rs +++ b/rs/packages/api/src/routes/users/mod.rs @@ -140,7 +140,7 @@ pub mod post { max = "VALIDATE_USER_EMAIL_MAX_LEN", message = "Email is either too short or too long" ), - non_control_character(message = "Email contains invalid characters") + // non_control_character(message = "Email contains invalid characters") )] email: String, @@ -169,7 +169,7 @@ pub mod post { max = "VALIDATE_USER_FIRST_NAME_MAX_LEN", message = "First name is either too short or too long" ), - non_control_character(message = "First name contains invalid characters") + // non_control_character(message = "First name contains invalid characters") )] first_name: String, @@ -180,7 +180,7 @@ pub mod post { max = "VALIDATE_USER_LAST_NAME_MAX_LEN", message = "Last name is either too short or too long" ), - non_control_character(message = "Last name contains invalid characters") + // non_control_character(message = "Last name contains invalid characters") )] last_name: String, @@ -192,7 +192,7 @@ pub mod post { max = "VALIDATE_USER_LANGUAGE_MAX_LEN", message = "Language is either too short or too long" ), - non_control_character(message = "Language contains invalid characters") + // non_control_character(message = "Language contains invalid characters") )] language: Option, diff --git a/rs/packages/db/src/models/account/mod.rs b/rs/packages/db/src/models/account/mod.rs index d480ebde..d354f829 100644 --- a/rs/packages/db/src/models/account/mod.rs +++ b/rs/packages/db/src/models/account/mod.rs @@ -75,7 +75,7 @@ pub struct AccountPatch { max = "VALIDATE_ACCOUNT_NAME_MAX_LEN", message = "Account name is either too short or too long", ), - non_control_character(message = "Account name cannot have control characters") + // non_control_character(message = "Account name cannot have control characters") )] pub name: Option, #[serde(skip_serializing_if = "Option::is_none")] diff --git a/rs/packages/db/src/models/admin/mod.rs b/rs/packages/db/src/models/admin/mod.rs index 8d7efea1..3673e80c 100644 --- a/rs/packages/db/src/models/admin/mod.rs +++ b/rs/packages/db/src/models/admin/mod.rs @@ -70,7 +70,7 @@ pub struct AdminPatch { max = "VALIDATE_ADMIN_FIRST_NAME_MAX_LEN", message = "First name is either too short or too long", ), - non_control_character(message = "Fist name cannot contain control characters") + // non_control_character(message = "Fist name cannot contain control characters") )] pub first_name: Option, #[serde(skip_serializing_if = "Option::is_none")] @@ -81,7 +81,7 @@ pub struct AdminPatch { max = "VALIDATE_ADMIN_LAST_NAME_MAX_LEN", message = "Last name is either too short or too long", ), - non_control_character(message = "Last name cannot contain control characters") + // non_control_character(message = "Last name cannot contain control characters") )] pub last_name: Option, #[serde(skip_serializing_if = "Option::is_none")] diff --git a/rs/packages/db/src/models/station/mod.rs b/rs/packages/db/src/models/station/mod.rs index 5171d379..1ba4f18b 100644 --- a/rs/packages/db/src/models/station/mod.rs +++ b/rs/packages/db/src/models/station/mod.rs @@ -39,7 +39,7 @@ pub struct Station { max = "VALIDATE_STATION_NAME_MAX_LEN", message = "Station name is empty or too long" ), - non_control_character(message = "Station name cannot have control characters") + // non_control_character(message = "Station name cannot have control characters") )] pub name: String, @@ -52,7 +52,7 @@ pub struct Station { max = "VALIDATE_STATION_SLOGAN_MAX_LEN", message = "Slogan is empty or too long" ), - non_control_character(message = "Slogan cannot have control characters") + // non_control_character(message = "Slogan cannot have control characters") )] pub slogan: Option, @@ -82,7 +82,7 @@ pub struct Station { #[validate( email(message = "Email is invalid"), length(max = "VALIDATE_STATION_EMAIL_MAX_LEN", message = "Email is too long"), - non_control_character(message = "Email cannot have control characters") + // non_control_character(message = "Email cannot have control characters") )] pub email: Option, @@ -90,7 +90,7 @@ pub struct Station { #[validate( phone(message = "Phone is invalid"), length(max = "VALIDATE_STATION_PHONE_MAX_LEN", message = "Phone is too long"), - non_control_character(message = "Phone is invalid") + // non_control_character(message = "Phone is invalid") )] pub phone: Option, @@ -101,7 +101,7 @@ pub struct Station { max = "VALIDATE_STATION_WHATSAPP_MAX_LEN", message = "WhatsApp number is too long" ), - non_control_character(message = "WhatsApp number cannot have control characters") + // non_control_character(message = "WhatsApp number cannot have control characters") )] pub whatsapp: Option, @@ -114,7 +114,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Website URL is too long" ), - non_control_character(message = "Website URL cannot have control characters") + // non_control_character(message = "Website URL cannot have control characters") )] pub website_url: Option, @@ -126,7 +126,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Twitter URL is too long" ), - non_control_character(message = "Twitter URL cannot have control characters") + // non_control_character(message = "Twitter URL cannot have control characters") )] pub twitter_url: Option, @@ -138,7 +138,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Facebook URL is too long" ), - non_control_character(message = "Facebook URL cannot have control characters") + // non_control_character(message = "Facebook URL cannot have control characters") )] pub facebook_url: Option, @@ -150,7 +150,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Instagram URL is too long" ), - non_control_character(message = "Instagram URL cannot have control characters") + // non_control_character(message = "Instagram URL cannot have control characters") )] pub instagram_url: Option, @@ -162,7 +162,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Threads URL is too long" ), - non_control_character(message = "Threads URL cannot have control characters") + // non_control_character(message = "Threads URL cannot have control characters") )] pub threads_url: Option, @@ -174,7 +174,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Youtube URL is too long" ), - non_control_character(message = "Youtube URL cannot have control characters") + // non_control_character(message = "Youtube URL cannot have control characters") )] pub youtube_url: Option, @@ -186,7 +186,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Twitch URL is too long" ), - non_control_character(message = "Twitch URL cannot have control characters") + // non_control_character(message = "Twitch URL cannot have control characters") )] pub twitch_url: Option, @@ -198,7 +198,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "TikTok URL is invalid" ), - non_control_character(message = "TikTok URL cannot have control characters") + // non_control_character(message = "TikTok URL cannot have control characters") )] pub tiktok_url: Option, @@ -210,7 +210,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Spotify URL is invalid" ), - non_control_character(message = "Spotify URL cannot have control characters") + // non_control_character(message = "Spotify URL cannot have control characters") )] pub spotify_url: Option, @@ -222,7 +222,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "RadioCut URL is invalid" ), - non_control_character(message = "RadioCut URL cannot have control characters") + // non_control_character(message = "RadioCut URL cannot have control characters") )] pub radiocut_url: Option, @@ -235,7 +235,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Google Play URL is too long" ), - non_control_character(message = "Google Play URL cannot have control characters") + // non_control_character(message = "Google Play URL cannot have control characters") )] pub google_play_url: Option, @@ -247,7 +247,7 @@ pub struct Station { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "App Store URL is too long" ), - non_control_character(message = "App Store URL cannot have control characters") + // non_control_character(message = "App Store URL cannot have control characters") )] pub app_store_url: Option, @@ -451,7 +451,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_NAME_MAX_LEN", message = "Station name is empty or too long" ), - non_control_character(message = "Station name cannot have control characters") + // non_control_character(message = "Station name cannot have control characters") )] pub name: Option, @@ -471,7 +471,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_SLOGAN_MAX_LEN", message = "Slogan is empty or too long" ), - non_control_character(message = "Slogan cannot have control characters") + // non_control_character(message = "Slogan cannot have control characters") )] pub slogan: Option>, @@ -530,7 +530,7 @@ pub struct StationPatch { #[validate( email(message = "Email is invalid"), length(max = "VALIDATE_STATION_EMAIL_MAX_LEN", message = "Email is too long"), - non_control_character(message = "Email cannot have control characters") + // non_control_character(message = "Email cannot have control characters") )] pub email: Option>, @@ -544,7 +544,7 @@ pub struct StationPatch { #[validate( phone(message = "Phone is invalid"), length(max = "VALIDATE_STATION_PHONE_MAX_LEN", message = "Phone is too long"), - non_control_character(message = "Phone cannot have control characters") + // non_control_character(message = "Phone cannot have control characters") )] pub phone: Option>, @@ -561,7 +561,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_WHATSAPP_MAX_LEN", message = "WhatsApp number is too long" ), - non_control_character(message = "WhatsApp number cannot have control characters") + // non_control_character(message = "WhatsApp number cannot have control characters") )] pub whatsapp: Option>, @@ -580,7 +580,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Website URL is too long" ), - non_control_character(message = "Website URL cannot have control characters") + // non_control_character(message = "Website URL cannot have control characters") )] pub website_url: Option>, @@ -598,7 +598,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Twitter URL is too long" ), - non_control_character(message = "Twitter URL cannot have control characters") + // non_control_character(message = "Twitter URL cannot have control characters") )] pub twitter_url: Option>, @@ -616,7 +616,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Facebook URL is too long" ), - non_control_character(message = "Facebook URL cannot have control characters") + // non_control_character(message = "Facebook URL cannot have control characters") )] pub facebook_url: Option>, @@ -634,7 +634,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Instagram URL is too long" ), - non_control_character(message = "Instagram URL cannot have control characters") + // non_control_character(message = "Instagram URL cannot have control characters") )] pub instagram_url: Option>, @@ -652,7 +652,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Threads URL is too long" ), - non_control_character(message = "Threads URL cannot have control characters") + // non_control_character(message = "Threads URL cannot have control characters") )] pub threads_url: Option>, @@ -670,7 +670,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Youtube URL is too long" ), - non_control_character(message = "Youtube URL cannot have control characters") + // non_control_character(message = "Youtube URL cannot have control characters") )] pub youtube_url: Option>, @@ -688,7 +688,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Twitch URL is too long" ), - non_control_character(message = "Twitch URL cannot have control characters") + // non_control_character(message = "Twitch URL cannot have control characters") )] pub twitch_url: Option>, @@ -706,7 +706,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "TikTok URL is invalid" ), - non_control_character(message = "TikTok URL cannot have control characters") + // non_control_character(message = "TikTok URL cannot have control characters") )] pub tiktok_url: Option>, @@ -724,7 +724,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Spotify URL is invalid" ), - non_control_character(message = "Spotify URL cannot have control characters") + // non_control_character(message = "Spotify URL cannot have control characters") )] pub spotify_url: Option>, @@ -742,7 +742,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "RadioCut URL is invalid" ), - non_control_character(message = "RadioCut URL cannot have control characters") + // non_control_character(message = "RadioCut URL cannot have control characters") )] pub radiocut_url: Option>, @@ -761,7 +761,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "Google Play URL is too long" ), - non_control_character(message = "Google Play URL cannot have control characters") + // non_control_character(message = "Google Play URL cannot have control characters") )] pub google_play_url: Option>, @@ -779,7 +779,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_URLS_MAX_LEN", message = "App Store URL is too long" ), - non_control_character(message = "App Store URL cannot have control characters") + // non_control_character(message = "App Store URL cannot have control characters") )] pub app_store_url: Option>, @@ -797,7 +797,7 @@ pub struct StationPatch { max = "VALIDATE_STATION_EXTERNAL_RELAY_URL_MAX_LEN", message = "External Relay URL is too long" ), - non_control_character(message = "External Relay URL cannot have control characters") + // non_control_character(message = "External Relay URL cannot have control characters") )] pub external_relay_url: Option>,